You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I only get device value one time when it registers with Home Gateway, after that i do not receive any packet from it. I want to know whether value of a node changed, can you show me how to do that.
The text was updated successfully, but these errors were encountered:
Spontaneous notification of value change is mandatory for very few important properties in Echonet Lite to support low power device/narrow network bandwidth (though not prohibited.)
Please check the latest appendix sheet.
Because I want to get value of device continuously. So I use While(true) to loop for requesting and then receiving the message from devices. But I must create a lot of separate threads for each device. How can I request and get device information continuously without using while(true)? Because I want to use a single thread for one class code device.
Because of the protocol spec, the only way to trace value change of non-announcing properties is to use 'polling' technique.
It is essentially the same as your while(true) loop. You have to send requests multiple times and check the responses (as frequent as you want, but don't put too much pressure on low-power devices.)
Using multiple threads is a good idea, but be careful not to send many packets to one device at once, because it causes packet loss (because you are using UDP) or overwork of devices with small network capacity.
I only get device value one time when it registers with Home Gateway, after that i do not receive any packet from it. I want to know whether value of a node changed, can you show me how to do that.
The text was updated successfully, but these errors were encountered: