Hello,
After establishing a secure communication with authentication high and security policy equal to 3, we tested the event notification. In fact, we added in the svr_preaction the function sendEventNotification2(settings) after updateState(GURUX_EVENT_CODES_OUTPUT_RELAY_STATE).
Then we tried to send a reconnect command through the client (method 2). A pop up "invalid command" appeared and the code crashed. It is due to the sendEventNotification2(). Plus the data received in the notification window are wrong.
Best Regards,
Lara Wakim
NB:
To help you in solving the issue we tracked the log files, and the results are the following for the above test:
5:11:20 PM Method object 0.0.96.3.10.255, interface DisconnectControl
7E A0 2E 03 25 BA 9C AC E6 E6 00 CB 20 30 00 00 00 0E 21 19 01 CF 7C 15 E0 86 04 2B 06 BA AD 7B 2F A8 D8 ED E1 21 EB F3 37 55 EE 40 98 D4 3E 7E
5:11:22 PM
7E A0 36 25 03 13 2F 10 E6 E7 00 00 28 30 00 00 00 0B 32 3F EE 41 6F 19 D7 E5 F4 90 1F 8D 06 81 CE 7D 4E 1A 36 A7 DB ED 53 1B 76 6B 0F 5D CB F7 63 C2 63 E1 FC B0 AB 7E
Then we tried the same secure connection but we commented the event notification, the reconnect action was successful and the logs are the following:
5:12:18 PM Method object 0.0.96.3.10.255, interface DisconnectControl
7E A0 2E 03 25 54 EC A2 E6 E6 00 CB 20 30 00 00 00 0B BE 3B 2F F7 DB 01 F6 AD 67 6F 78 D3 1B E8 62 CA 82 DE 5D BF C0 AE 8A 88 79 17 52 BC DE 7E
5:12:19 PM
7E A0 24 25 03 74 41 FD E6 E7 00 CF 16 30 00 00 00 0E 9F BE ED 5E 0C E6 E1 EA EB 43 8E 8E D7 DE 7E FF C4 89 C8 7E
Then we tried a not secure connection with security policy none but with the sendEventNotification2() function and it was also a success and the logs are the following:
5:10:08 PM Method object 0.0.96.3.10.255, interface DisconnectControl
7E A0 1B 03 25 32 79 86 E6 E6 00 C3 01 C1 00 46 00 00 60 03 0A FF 02 01 0F 00 A5 83 7E
5:10:09 PM
7E A0 11 25 03 52 D0 9B E6 E7 00 C7 01 C1 00 00 FC B4 7E
Hope it will help you to track the issue