Test Report : TEST-hub_topic_test-20240130083930.xml
Test Suite: hub_topic_test-20240130083930
Results
| Duration | 3.338 sec |
| Tests | 1 |
| Failures | 0 |
Tests
hub_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.338 sec |
| Failed | None |
None
Suite stdout:
[1706603970674] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1706603970675] [INFO] FW-UPD Initialized
[1706603970675] [DBG] FW-UPD enter <function device_base.set_hub at 0x7faf317b0220> (<uclient.hub.HUB object at 0x7faf323727d0>,)
[1706603970675] [DBG] FW-UPD exit <function device_base.set_hub at 0x7faf317b0220> ret: None
[1706603970675] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7faf319b6b60> ('<48:3f:da:55:07:5b/status', '-1')
[1706603970675] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7faf319b6b60> ret: None
[1706603970675] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7faf319b68e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7faf323727d0>>,)
[1706603970675] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7faf319b68e0> ret: None
[1706603970675] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7faf319b6a20> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7faf323727d0>>,)
[1706603970675] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7faf319b6a20> ret: None
[1706603970675] [WARN] HUB Try to connect without uri-schema
[1706603970675] [DBG] MQTT enter <function mqtt_transport.connect at 0x7faf319b5d00> ('x.ks.ua',)
[1706603971678] [INFO] HUB Connected
[1706603971678] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7faf319b6520> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf323727d0>>)
[1706603971719] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7faf319b6520> ret: None
[1706603971719] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7faf319b6520> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf323727d0>>)
[1706603971763] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7faf319b6520> ret: None
[1706603971763] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1706603971763] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7faf319b6520> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf323727d0>>)
[1706603971807] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7faf319b6520> ret: None
[1706603971807] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1706603971807] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7faf319b6520> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf323727d0>>)
[1706603971851] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7faf319b6520> ret: None
[1706603971851] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1706603971851] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7faf319b6520> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf323727d0>>)
[1706603971896] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7faf319b6520> ret: None
[1706603971896] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1706603971896] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7faf319b6520> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf323727d0>>)
[1706603971939] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7faf319b6520> ret: None
[1706603971939] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1706603971939] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7faf319b6520> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf323727d0>>)
[1706603971983] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7faf319b6520> ret: None
[1706603971983] [DBG] MQTT exit <function mqtt_transport.connect at 0x7faf319b5d00> ret: None
[1706603971984] [DBG] HUB Step, state: 0 (next: 1706603972984)
[1706603971984] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1706603971984] [DBG] MQTT enter <function mqtt_transport.publish at 0x7faf319b63e0> ('/reg', '48:3f:da:55:07:5b')
[1706603972028] [DBG] MQTT exit <function mqtt_transport.publish at 0x7faf319b63e0> ret: None
[1706603972075] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1706603972030 }
[1706603972075] [INFO] HUB Registration finish, time: 1706603972030
[1706603972075] [DBG] FW-UPD enter <function device_base.register at 0x7faf317b0720> (1706603972,)
[1706603972075] [INFO] FW-UPD Device 3996365522 registration on the server @ 1706603972
[1706603972075] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1706603972075] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7faf319b6520> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf323727d0>>)
[1706603972119] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7faf319b6520> ret: None
[1706603972119] [DBG] FW-UPD exit <function device_base.register at 0x7faf317b0720> ret: None
[1706603972984] [DBG] HUB Step, state: 1 (next: 1706603973984)
[1706603972984] [DBG] FW-UPD enter <function device_base.info_req at 0x7faf317b0fe0> ()
[1706603972984] [DBG] FW-UPD exit <function device_base.info_req at 0x7faf317b0fe0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1706603972}}
[1706603972984] [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": 1706603972}}]} }
[1706603972984] [DBG] MQTT enter <function mqtt_transport.publish at 0x7faf319b63e0> ('/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": 1706603972}}]}')
[1706603972984] [DBG] MQTT exit <function mqtt_transport.publish at 0x7faf319b63e0> ret: None
[1706603974011] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7faf319b67a0> ()
[1706603974011] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7faf319b67a0> ret: None
Suite stderr:
2024-01-30 08:39:32,989 - TEST - INFO - OP take: 1005.255 ms
2024-01-30 08:39:32,999 - TEST - INFO - Connected with result code: 0
2024-01-30 08:39:33,003 - TEST - INFO - OP take: 10.086 ms
2024-01-30 08:39:34,011 - TEST - INFO - OP take: 0.006 ms
2024-01-30 08:39:34,011 - TEST - WARNING - Disconecting from broker