EverythingSmartHome / fingerprint-mqtt

Fingerprint sensor with MQTT support based on Adafruit Fingerprint Sensor Library
GNU General Public License v3.0
24 stars 14 forks source link

relay #11

Open hugostegeman opened 3 years ago

hugostegeman commented 3 years ago

Is there a version were you can connect a relay to use the sensor standalone without a internet connection but sends data when available? I want to use the sensor in my garage were the internet conncetion is not always stable.

unseemlycoder commented 1 year ago

I haven't tested out autoConnect, hope this help: AutoConnect WiFi connection control

If WiFi is available/connected: execute all MQTT publish statements along with fingerprint code. else (when not connected): only execute fingerprint code.

Take care of bypassing the mqtt reconnect() loop.

You've highlighted a very possible scenario; I've always assumed my mqtt sever and wifi router would run 24x7. If either were to go down, the module will not scan and match.