enesbcs / mpyeasy-async

Easy MultiSensor device based on MicroPython for Raspberry Pico (RP2) and ESP32
GNU General Public License v3.0
4 stars 1 forks source link

Unit number always reverts back to "0" #4

Closed Budman1758 closed 1 year ago

Budman1758 commented 2 years ago

I have ESPEasy P2P controller in use and that seems to work fine. After a reboot the unit number I assign always reverts back to zero.

enesbcs commented 2 years ago

Thanks for testing it has to be a settings loading error.

Budman1758 commented 2 years ago

Another thing I notice is on the main page where the node list is it shows all other nodes that I have but the unit itself does not show in it like it does in RPIEasy or ESPEasy units. Probably not a big deal but thought I would mention it.

enesbcs commented 1 year ago

Yes mpyeasy and mpyeasy-async sends broadcast UDP messages to each node, but it seems, that it never gets back its own packages, so nodes did not show on its own listing... although it is not impossible to add some extra code to show itself on the node list.

enesbcs commented 1 year ago

Unit number saving fixed in commit https://github.com/enesbcs/mpyeasy-async/commit/e90610b2690b4a0af9025bf4c15391c0365d89ef

Budman1758 commented 1 year ago

Saving unit number is working now. Don't know if you added the code to show itself on the main page or not but that does not work yet. If not worried about that (I'm not) then feel free to close this one.