Test Report : TEST-last_will_test-20240210233629.xml
Test Suite: last_will_test-20240210233629
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:
[1707608189104] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1707608189104] [INFO] FW-UPD Initialized
[1707608189104] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f8758cfbce0> (<uclient.hub.HUB object at 0x7f875896c090>,)
[1707608189104] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f8758cfbce0> ret: None
[1707608189104] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f8758cfa660> ('<48:3f:da:55:07:5b/status', '-1')
[1707608189104] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f8758cfa660> ret: None
[1707608189104] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f8758cfa3e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f875896c090>>,)
[1707608189104] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f8758cfa3e0> ret: None
[1707608189104] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f8758cfa520> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f875896c090>>,)
[1707608189104] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f8758cfa520> ret: None
[1707608189104] [WARN] HUB Try to connect without uri-schema
[1707608189104] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f8758cf9da0> ('x.ks.ua',)
[1707608190108] [INFO] HUB Connected
[1707608190108] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8758cfa020> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f875896c090>>)
[1707608190151] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8758cfa020> ret: None
[1707608190151] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8758cfa020> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f875896c090>>)
[1707608190195] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8758cfa020> ret: None
[1707608190195] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707608190195] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8758cfa020> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f875896c090>>)
[1707608190239] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8758cfa020> ret: None
[1707608190239] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707608190239] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8758cfa020> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f875896c090>>)
[1707608190283] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8758cfa020> ret: None
[1707608190283] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707608190283] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8758cfa020> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f875896c090>>)
[1707608190327] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8758cfa020> ret: None
[1707608190327] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707608190327] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8758cfa020> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f875896c090>>)
[1707608190371] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8758cfa020> ret: None
[1707608190371] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707608190372] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8758cfa020> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f875896c090>>)
[1707608190415] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8758cfa020> ret: None
[1707608190415] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f8758cf9da0> ret: None
[1707608190416] [DBG] HUB Step, state: 0 (next: 1707608191416)
[1707608190416] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1707608190416] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f8758cf9ee0> ('/reg', '48:3f:da:55:07:5b')
[1707608190459] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f8758cf9ee0> ret: None
[1707608190503] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1707608190460 }
[1707608190503] [INFO] HUB Registration finish, time: 1707608190460
[1707608190503] [DBG] FW-UPD enter <function device_base.register at 0x7f8758af0220> (1707608190,)
[1707608190503] [INFO] FW-UPD Device 3996365522 registration on the server @ 1707608190
[1707608190503] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707608190503] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8758cfa020> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f875896c090>>)
[1707608190547] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8758cfa020> ret: None
[1707608190547] [DBG] FW-UPD exit <function device_base.register at 0x7f8758af0220> ret: None
[1707608191416] [DBG] HUB Step, state: 1 (next: 1707608192416)
[1707608191416] [DBG] FW-UPD enter <function device_base.info_req at 0x7f8758af0ae0> ()
[1707608191416] [DBG] FW-UPD exit <function device_base.info_req at 0x7f8758af0ae0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707608190}}
[1707608191416] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707608190}}]} }
[1707608191416] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f8758cf9ee0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707608190}}]}')
[1707608191416] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f8758cf9ee0> ret: None
[1707608192438] [WARN] HUB Disconecting from broker
[1707608192438] [WARN] MQTT Reconnecting in 1s
Suite stderr:
2024-02-10 23:36:31,425 - TEST - INFO - OP take: 1009.06 ms
2024-02-10 23:36:31,433 - TEST - INFO - Connected with result code: 0
2024-02-10 23:36:31,438 - TEST - INFO - OP take: 10.097 ms
2024-02-10 23:36:32,449 - TEST - INFO - OP take: 10.122 ms
2024-02-10 23:36:32,450 - TEST - WARNING - Disconecting from broker
2024-02-10 23:36:32,451 - TEST - WARNING - Disconecting from broker
2024-02-10 23:36:32,454 - TEST - INFO - Connected with result code: 0