Test Report : TEST-last_will_test-20240413183711.xml
Test Suite: last_will_test-20240413183711
Results
| Duration | 3.348 sec |
| Tests | 1 |
| Failures | 0 |
Tests
last_will_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.348 sec |
| Failed | None |
None
Suite stdout:
[1713033431550] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1713033431551] [INFO] FW-UPD Initialized
[1713033431551] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f78f32a7ce0> (<uclient.hub.HUB object at 0x7f78f30abd10>,)
[1713033431551] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f78f32a7ce0> ret: None
[1713033431551] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f78f32a6660> ('<48:3f:da:55:07:5b/status', '-1')
[1713033431551] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f78f32a6660> ret: None
[1713033431551] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f78f32a63e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f78f30abd10>>,)
[1713033431551] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f78f32a63e0> ret: None
[1713033431551] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f78f32a6520> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f78f30abd10>>,)
[1713033431551] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f78f32a6520> ret: None
[1713033431551] [WARN] HUB Try to connect without uri-schema
[1713033431551] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f78f32a5da0> ('x.ks.ua',)
[1713033432554] [INFO] HUB Connected
[1713033432554] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f78f32a6020> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f78f30abd10>>)
[1713033432598] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f78f32a6020> ret: None
[1713033432598] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f78f32a6020> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f78f30abd10>>)
[1713033432642] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f78f32a6020> ret: None
[1713033432642] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713033432642] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f78f32a6020> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f78f30abd10>>)
[1713033432686] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f78f32a6020> ret: None
[1713033432686] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713033432686] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f78f32a6020> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f78f30abd10>>)
[1713033432730] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f78f32a6020> ret: None
[1713033432730] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713033432730] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f78f32a6020> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f78f30abd10>>)
[1713033432774] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f78f32a6020> ret: None
[1713033432774] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713033432774] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f78f32a6020> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f78f30abd10>>)
[1713033432818] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f78f32a6020> ret: None
[1713033432818] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713033432818] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f78f32a6020> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f78f30abd10>>)
[1713033432862] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f78f32a6020> ret: None
[1713033432862] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f78f32a5da0> ret: None
[1713033432863] [DBG] HUB Step, state: 0 (next: 1713033433863)
[1713033432863] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1713033432863] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f78f32a5ee0> ('/reg', '48:3f:da:55:07:5b')
[1713033432907] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f78f32a5ee0> ret: None
[1713033432950] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1713033432908 }
[1713033432950] [INFO] HUB Registration finish, time: 1713033432908
[1713033432950] [DBG] FW-UPD enter <function device_base.register at 0x7f78f309c220> (1713033432,)
[1713033432950] [INFO] FW-UPD Device 3996365522 registration on the server @ 1713033432
[1713033432950] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713033432950] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f78f32a6020> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f78f30abd10>>)
[1713033432994] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f78f32a6020> ret: None
[1713033432995] [DBG] FW-UPD exit <function device_base.register at 0x7f78f309c220> ret: None
[1713033433863] [DBG] HUB Step, state: 1 (next: 1713033434863)
[1713033433863] [DBG] FW-UPD enter <function device_base.info_req at 0x7f78f309cae0> ()
[1713033433863] [DBG] FW-UPD exit <function device_base.info_req at 0x7f78f309cae0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713033432}}
[1713033433863] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240413;master;3ad924fe4d0ad95a2a5e5eda31858f370b1d89ff", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713033432}}]} }
[1713033433863] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f78f32a5ee0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240413;master;3ad924fe4d0ad95a2a5e5eda31858f370b1d89ff", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713033432}}]}')
[1713033433863] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f78f32a5ee0> ret: None
[1713033434882] [WARN] HUB Disconecting from broker
[1713033434883] [WARN] MQTT Reconnecting in 1s
Suite stderr:
2024-04-13 18:37:13,869 - TEST - INFO - OP take: 1005.536 ms
2024-04-13 18:37:13,877 - TEST - INFO - Connected with result code: 0
2024-04-13 18:37:13,881 - TEST - INFO - OP take: 10.116 ms
2024-04-13 18:37:14,895 - TEST - INFO - OP take: 11.23 ms
2024-04-13 18:37:14,896 - TEST - WARNING - Disconecting from broker
2024-04-13 18:37:14,897 - TEST - WARNING - Disconecting from broker
2024-04-13 18:37:14,901 - TEST - INFO - Connected with result code: 0