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

Network ID Unset after unusual procedure #8

Open
io-Jacob opened this issue Jan 16, 2020 · 1 comment
Open

Network ID Unset after unusual procedure #8

io-Jacob opened this issue Jan 16, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@io-Jacob
Copy link
Contributor

If the gateway node is put into configuration mode and a sensor is configured using Node-Red and then node-red is stopped entirely before going back into Listening/Run mode and then node-red is restarted and the gateway node is put back into Listening/Run mode then the network ID becomes 0.

Toggling the gateway node back to config and then back to Listening/Run mode sets the network ID correctly.

@zaphod-42 zaphod-42 self-assigned this Nov 12, 2020
@zaphod-42 zaphod-42 added the bug Something isn't working label Nov 12, 2020
@zaphod-42
Copy link
Member

I don't have the hardware to test this with right now, but I believe this would be solved by abstracting the functionality of the express callback for the config button into its own function, and optionally calling it based on the current node status in a listener for the close event in the gateway node. Adding this note so I can fix it when I have time and hardware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants