Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relay #11

Open
hugostegeman opened this issue Feb 10, 2021 · 1 comment
Open

relay #11

hugostegeman opened this issue Feb 10, 2021 · 1 comment

Comments

@hugostegeman
Copy link

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants