AqualinkD
AqualinkD copied to clipboard
unpredictable waitForPDAMessageType added 45 second delay
see https://github.com/ballle98/AqualinkD/issues/21
There are times when the message rate is not predictable especially when there is no active web connection and aqualinkd is trying to go to sleep to allow another PDA to connect. As seen below messages were coming about 60-70 milliseconds apart then between 7 and 8 there was a 45 second gap. It's better to use actual timeout values instead of message count.
12:39:50.661 Debug: waitForPDAMessageType 0x08, last message type was 0x04 (6 of 15)
12:39:50.743 Debug: waitForPDAMessageType 0x08, last message type was 0x04 (7 of 15)
12:40:35.458 Debug: waitForPDAMessageType 0x08, last message type was 0x09 (8 of 15)