Pumping Station: One has a number of tools that really shouldn't be operated without the proper authorization/training. To eliminate casual, unuathorized use, an RFID system has been put in place on some tools so that the machine cannot even be powered on without the user being properly authorized to use it.
This is the main file that begins the webservice and listens on port 8080.
Responsible for sending any access attempts to an MQTT topic for logging, etc.
This file does most of the heavy lifting. In a nutshell, the process of determining whether someone has access is as follows:
- Get all the users in the specific OU; the name of the OU is stored in the code of whatever device invokes this web service (e.g. the controller that is attached to the LeBlond lathe invokes the service with "LeBlond Lathe")
- For each user in the group, check the RFID tags (stored in the "otherPager" array) and if there's a match, return 1 to the caller to indicate they're good to. If there is not a match for anyone, return 0 and the machine should not allow it to be used.