makeitlabs / ratt

RATT (RFID All The Things) is an RFID access control system primarily for use on tools and equipment in makerspace environments. Based on Raspberry Pi Zero W and a custom hardware control board.
23 stars 4 forks source link

improve lockout #9

Closed tangentaudio closed 4 years ago

tangentaudio commented 5 years ago

image

  1. backend is sending json payload in lock message, which is against spec but a perfectly reasonable improvement.

  2. backend has to send a lock message with a null payload to clear the retention in the broker, and RATT interprets this as a lockout with no reason given.

Improve both by making RATT accept json in the lock (and unlock) message payload, and make it ignore a null payload.

tangentaudio commented 4 years ago

Between Brad's PR and some changes I just made, this should be fixed for real now. Node-RED or backend may need some updating to properly show lockout messages.