Test Report : TEST-last_will_test-20240202135249.xml
Test Suite: last_will_test-20240202135249
Results
| Duration | 3.345 sec |
| Tests | 1 |
| Failures | 0 |
Tests
last_will_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.345 sec |
| Failed | None |
None
Suite stdout:
[1706881969896] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1706881969896] [INFO] FW-UPD Initialized
[1706881969896] [DBG] FW-UPD enter <function device_base.set_hub at 0x7ff587f639c0> (<uclient.hub.HUB object at 0x7ff587b6c350>,)
[1706881969896] [DBG] FW-UPD exit <function device_base.set_hub at 0x7ff587f639c0> ret: None
[1706881969896] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7ff587f62340> ('<48:3f:da:55:07:5b/status', '-1')
[1706881969896] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7ff587f62340> ret: None
[1706881969896] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7ff587f620c0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7ff587b6c350>>,)
[1706881969896] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7ff587f620c0> ret: None
[1706881969896] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7ff587f62200> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7ff587b6c350>>,)
[1706881969897] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7ff587f62200> ret: None
[1706881969897] [WARN] HUB Try to connect without uri-schema
[1706881969897] [DBG] MQTT enter <function mqtt_transport.connect at 0x7ff587f614e0> ('x.ks.ua',)
[1706881970900] [INFO] HUB Connected
[1706881970900] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff587f61d00> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff587b6c350>>)
[1706881970943] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff587f61d00> ret: None
[1706881970943] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff587f61d00> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff587b6c350>>)
[1706881970987] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff587f61d00> ret: None
[1706881970987] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1706881970987] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff587f61d00> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff587b6c350>>)
[1706881971031] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff587f61d00> ret: None
[1706881971031] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1706881971031] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff587f61d00> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff587b6c350>>)
[1706881971075] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff587f61d00> ret: None
[1706881971075] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1706881971075] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff587f61d00> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff587b6c350>>)
[1706881971119] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff587f61d00> ret: None
[1706881971119] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1706881971119] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff587f61d00> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff587b6c350>>)
[1706881971163] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff587f61d00> ret: None
[1706881971163] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1706881971163] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff587f61d00> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff587b6c350>>)
[1706881971207] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff587f61d00> ret: None
[1706881971207] [DBG] MQTT exit <function mqtt_transport.connect at 0x7ff587f614e0> ret: None
[1706881971208] [DBG] HUB Step, state: 0 (next: 1706881972208)
[1706881971208] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1706881971208] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff587f61bc0> ('/reg', '48:3f:da:55:07:5b')
[1706881971251] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff587f61bc0> ret: None
[1706881971295] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1706881971255 }
[1706881971295] [INFO] HUB Registration finish, time: 1706881971255
[1706881971295] [DBG] FW-UPD enter <function device_base.register at 0x7ff587f63ec0> (1706881971,)
[1706881971295] [INFO] FW-UPD Device 3996365522 registration on the server @ 1706881971
[1706881971295] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1706881971295] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff587f61d00> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff587b6c350>>)
[1706881971339] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff587f61d00> ret: None
[1706881971339] [DBG] FW-UPD exit <function device_base.register at 0x7ff587f63ec0> ret: None
[1706881972208] [DBG] HUB Step, state: 1 (next: 1706881973208)
[1706881972208] [DBG] FW-UPD enter <function device_base.info_req at 0x7ff587cf47c0> ()
[1706881972208] [DBG] FW-UPD exit <function device_base.info_req at 0x7ff587cf47c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1706881971}}
[1706881972208] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706881971}}]} }
[1706881972208] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff587f61bc0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706881971}}]}')
[1706881972208] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff587f61bc0> ret: None
[1706881973228] [WARN] HUB Disconecting from broker
[1706881973228] [WARN] MQTT Reconnecting in 1s
Suite stderr:
2024-02-02 13:52:52,215 - TEST - INFO - OP take: 1007.283 ms
2024-02-02 13:52:52,220 - TEST - INFO - Connected with result code: 0
2024-02-02 13:52:52,227 - TEST - INFO - OP take: 10.097 ms
2024-02-02 13:52:53,238 - TEST - INFO - OP take: 10.161 ms
2024-02-02 13:52:53,239 - TEST - WARNING - Disconecting from broker
2024-02-02 13:52:53,240 - TEST - WARNING - Disconecting from broker
2024-02-02 13:52:53,242 - TEST - INFO - Connected with result code: 0