-
Notifications
You must be signed in to change notification settings - Fork 5
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
Not always responding #13
Comments
Yes and something that needs thinking about. UDP offers no guarantee of message delivery so some sort of retry/acknowledgement system would be useful. |
Is there any acknowledgement from the orvibo sent out? It seems the app is more consistent. |
Yes, if the command was successfully received by the socket, you should get a response confirming the new state. I'm just looking for a good way to handle the combination of request-response commands from the library, with the unsolicited messages that arrive if the status is changed from something other than the library. |
@exdirectory I'm in the process of doing an overhaul of the network code. It should retry messages if it doesn't get a response from the device so once this is merged you shouldn't need to send commands in a loop. |
ok great, will wait for your commit and try that, cheers |
Dear Tavalin |
Could you give the dev branch a try if possible? I have pushed the new code with the message retry mechanism (although I haven't finished retrofitting the IR code) |
Just tested the dev branch, initial reaction is this is not fixed, i removed the code to repeat the call 3 times, i then tried to turn on, nothing, tried again, nothing, third time and then it worked, then it worked seamlessly with a single call. But gave it 5 mins, tried to turn off and got no success, turned off again and it worked. So in short, think it has not helped. |
This is the code i am using...
|
Any chance you could send a debug log? To enable logging I added slf4j-simple to my test program and use the following VM options:
I'd expect a line such as:
if the Socket replied or
if the socket didn't send a reply. |
Sure, may not get chance until tomorrow evening though, will let you know. |
Taking your example where the mac address is known, i found i had to create a loop to send the on or off signal three times to get a consistent result, i.e. the device turned on or off.
Have you a similar experience?
The text was updated successfully, but these errors were encountered: