Test Report : TEST-last_will_test-20231108220030.xml
Test Suite: last_will_test-20231108220030
Results
| Duration | 3.344 sec |
| Tests | 1 |
| Failures | 0 |
Tests
last_will_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.344 sec |
| Failed | None |
None
Suite stdout:
[1699480830491] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1699480830491] [INFO] FW-UPD Initialized
[1699480830491] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f4eb3e639c0> (<uclient.hub.HUB object at 0x7f4eb3cdd950>,)
[1699480830491] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f4eb3e639c0> ret: None
[1699480830491] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f4eb3e62340> ('<48:3f:da:55:07:5b/status', '-1')
[1699480830491] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f4eb3e62340> ret: None
[1699480830491] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f4eb3e620c0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f4eb3cdd950>>,)
[1699480830491] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f4eb3e620c0> ret: None
[1699480830491] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f4eb3e62200> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f4eb3cdd950>>,)
[1699480830491] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f4eb3e62200> ret: None
[1699480830491] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f4eb3e614e0> ('x.ks.ua', 1883)
[1699480831494] [INFO] HUB Connected
[1699480831494] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4eb3cdd950>>)
[1699480831536] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ret: None
[1699480831536] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4eb3cdd950>>)
[1699480831580] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ret: None
[1699480831580] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1699480831581] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4eb3cdd950>>)
[1699480831624] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ret: None
[1699480831625] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1699480831625] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4eb3cdd950>>)
[1699480831670] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ret: None
[1699480831670] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1699480831670] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4eb3cdd950>>)
[1699480831713] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ret: None
[1699480831713] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1699480831713] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4eb3cdd950>>)
[1699480831756] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ret: None
[1699480831756] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1699480831756] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4eb3cdd950>>)
[1699480831800] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ret: None
[1699480831800] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f4eb3e614e0> ret: None
[1699480831801] [DBG] HUB Step, state: 0 (next: 1699480832801)
[1699480831801] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1699480831801] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f4eb3e61bc0> ('/reg', '48:3f:da:55:07:5b')
[1699480831845] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f4eb3e61bc0> ret: None
[1699480831888] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1699480831848 }
[1699480831888] [INFO] HUB Registration finish, time: 1699480831848
[1699480831888] [DBG] FW-UPD enter <function device_base.register at 0x7f4eb3e63ec0> (1699480831,)
[1699480831888] [INFO] FW-UPD Device 3996365522 registration on the server @ 1699480831
[1699480831888] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1699480831888] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4eb3cdd950>>)
[1699480831933] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4eb3e61d00> ret: None
[1699480831933] [DBG] FW-UPD exit <function device_base.register at 0x7f4eb3e63ec0> ret: None
[1699480832801] [DBG] HUB Step, state: 1 (next: 1699480833801)
[1699480832801] [DBG] FW-UPD enter <function device_base.info_req at 0x7f4eb3bf07c0> ()
[1699480832801] [DBG] FW-UPD exit <function device_base.info_req at 0x7f4eb3bf07c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1699480831}}
[1699480832801] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231108;master;41227627d69a88d88bb532de6fc4a842fc1a2e9c", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699480831}}]} }
[1699480832801] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f4eb3e61bc0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231108;master;41227627d69a88d88bb532de6fc4a842fc1a2e9c", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699480831}}]}')
[1699480832801] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f4eb3e61bc0> ret: None
[1699480833824] [WARN] HUB Disconecting from broker
[1699480833824] [WARN] MQTT Reconnecting in 1s
Suite stderr:
2023-11-08 22:00:32,811 - TEST - INFO - OP take: 1008.77 ms
2023-11-08 22:00:32,820 - TEST - INFO - Connected with result code: 0
2023-11-08 22:00:32,823 - TEST - INFO - OP take: 10.096 ms
2023-11-08 22:00:33,834 - TEST - INFO - OP take: 10.12 ms
2023-11-08 22:00:33,835 - TEST - WARNING - Disconecting from broker