Test Report : TEST-last_will_test-20240130083936.xml
Test Suite: last_will_test-20240130083936
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:
[1706603976703] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1706603976703] [INFO] FW-UPD Initialized
[1706603976703] [DBG] FW-UPD enter <function device_base.set_hub at 0x7fcc4413f9c0> (<uclient.hub.HUB object at 0x7fcc43d44610>,)
[1706603976703] [DBG] FW-UPD exit <function device_base.set_hub at 0x7fcc4413f9c0> ret: None
[1706603976703] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7fcc4413e340> ('<48:3f:da:55:07:5b/status', '-1')
[1706603976703] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7fcc4413e340> ret: None
[1706603976703] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7fcc4413e0c0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fcc43d44610>>,)
[1706603976703] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7fcc4413e0c0> ret: None
[1706603976703] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7fcc4413e200> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fcc43d44610>>,)
[1706603976703] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7fcc4413e200> ret: None
[1706603976703] [WARN] HUB Try to connect without uri-schema
[1706603976703] [DBG] MQTT enter <function mqtt_transport.connect at 0x7fcc4413d4e0> ('x.ks.ua',)
[1706603977709] [INFO] HUB Connected
[1706603977709] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fcc4413dd00> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcc43d44610>>)
[1706603977751] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fcc4413dd00> ret: None
[1706603977751] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fcc4413dd00> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcc43d44610>>)
[1706603977795] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fcc4413dd00> ret: None
[1706603977795] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1706603977795] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fcc4413dd00> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcc43d44610>>)
[1706603977839] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fcc4413dd00> ret: None
[1706603977839] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1706603977839] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fcc4413dd00> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcc43d44610>>)
[1706603977883] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fcc4413dd00> ret: None
[1706603977883] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1706603977883] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fcc4413dd00> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcc43d44610>>)
[1706603977927] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fcc4413dd00> ret: None
[1706603977927] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1706603977927] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fcc4413dd00> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcc43d44610>>)
[1706603977971] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fcc4413dd00> ret: None
[1706603977971] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1706603977971] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fcc4413dd00> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcc43d44610>>)
[1706603978015] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fcc4413dd00> ret: None
[1706603978015] [DBG] MQTT exit <function mqtt_transport.connect at 0x7fcc4413d4e0> ret: None
[1706603978016] [DBG] HUB Step, state: 0 (next: 1706603979016)
[1706603978016] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1706603978016] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fcc4413dbc0> ('/reg', '48:3f:da:55:07:5b')
[1706603978059] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fcc4413dbc0> ret: None
[1706603978103] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1706603978061 }
[1706603978103] [INFO] HUB Registration finish, time: 1706603978061
[1706603978103] [DBG] FW-UPD enter <function device_base.register at 0x7fcc4413fec0> (1706603978,)
[1706603978103] [INFO] FW-UPD Device 3996365522 registration on the server @ 1706603978
[1706603978103] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1706603978103] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fcc4413dd00> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fcc43d44610>>)
[1706603978147] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fcc4413dd00> ret: None
[1706603978147] [DBG] FW-UPD exit <function device_base.register at 0x7fcc4413fec0> ret: None
[1706603979016] [DBG] HUB Step, state: 1 (next: 1706603980016)
[1706603979016] [DBG] FW-UPD enter <function device_base.info_req at 0x7fcc43ecc7c0> ()
[1706603979016] [DBG] FW-UPD exit <function device_base.info_req at 0x7fcc43ecc7c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1706603978}}
[1706603979016] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240129;master;2ef3211e388ad8de8753e73738ad72b1dbe8c3e9", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706603978}}]} }
[1706603979016] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fcc4413dbc0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240129;master;2ef3211e388ad8de8753e73738ad72b1dbe8c3e9", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706603978}}]}')
[1706603979016] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fcc4413dbc0> ret: None
[1706603980035] [WARN] HUB Disconecting from broker
[1706603980035] [WARN] MQTT Reconnecting in 1s
Suite stderr:
2024-01-30 08:39:39,022 - TEST - INFO - OP take: 1006.44 ms
2024-01-30 08:39:39,027 - TEST - INFO - Connected with result code: 0
2024-01-30 08:39:39,034 - TEST - INFO - OP take: 10.113 ms
2024-01-30 08:39:40,045 - TEST - INFO - OP take: 10.131 ms
2024-01-30 08:39:40,047 - TEST - WARNING - Disconecting from broker
2024-01-30 08:39:40,047 - TEST - WARNING - Disconecting from broker
2024-01-30 08:39:40,051 - TEST - INFO - Connected with result code: 0