Repository navigation
Add ability to toggle devices from nodes view. - #3291
Conversation
| function rmtTgl(ip,i) { | ||
| event.preventDefault(); | ||
| event.stopPropagation(); | ||
| fetch(`http://${ip}/win&T=2`, {method: 'get'}) |
There was a problem hiding this comment.
We could consider T=2&NN so that really only that one instance is toggled (no sync). On the other hand, it might be more intuitive to have this power button do exactly what the native one in the device UI itself does. Which would you prefer?
There was a problem hiding this comment.
IMO sync should be respected if enabled.
| IPAddress ip; | ||
| uint8_t age; | ||
| uint8_t nodeType; | ||
| union { |
There was a problem hiding this comment.
IMO it is not a huge deal "wasting" space here, I wouldn't even add alternative type IDs starting from 1 at all, just adds overhead, as we should keep the 82/32-35 IDs anyways for compatibility.
We still have an extra byte for future enhancements without increasing the size of NodeStruct as 24 bit is sufficient for all build numbers until the year 2167 😄
And don't underestimate how many ESP32 variants Espressif can still throw on the market (H6? C6? C2? Hard to keep track...). Maybe we even want to distinguish different flash layouts or something with this in the future, so 7 bits seems reasonable for type.
Add ability to toggle devices from nodes view.
No description provided.