Test Report : TEST-hub_topic_test-20231210170720.xml
Test Suite: hub_topic_test-20231210170720
Results
| Duration | 3.355 sec |
| Tests | 1 |
| Failures | 0 |
Tests
hub_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.355 sec |
| Failed | None |
None
Suite stdout:
[1702228040419] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1702228040419] [INFO] FW-UPD Initialized
[1702228040419] [DBG] FW-UPD enter <function device_base.set_hub at 0x7fc2873d8220> (<uclient.hub.HUB object at 0x7fc287268b90>,)
[1702228040419] [DBG] FW-UPD exit <function device_base.set_hub at 0x7fc2873d8220> ret: None
[1702228040419] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7fc287642b60> ('<48:3f:da:55:07:5b/status', '-1')
[1702228040419] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7fc287642b60> ret: None
[1702228040419] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7fc2876428e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fc287268b90>>,)
[1702228040419] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7fc2876428e0> ret: None
[1702228040419] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7fc287642a20> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fc287268b90>>,)
[1702228040419] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7fc287642a20> ret: None
[1702228040419] [WARN] HUB Try to connect without uri-schema
[1702228040419] [DBG] MQTT enter <function mqtt_transport.connect at 0x7fc287641d00> ('x.ks.ua',)
[1702228041424] [INFO] HUB Connected
[1702228041424] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc287642520> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc287268b90>>)
[1702228041467] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc287642520> ret: None
[1702228041467] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc287642520> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc287268b90>>)
[1702228041511] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc287642520> ret: None
[1702228041511] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1702228041511] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc287642520> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc287268b90>>)
[1702228041556] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc287642520> ret: None
[1702228041556] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1702228041556] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc287642520> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc287268b90>>)
[1702228041599] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc287642520> ret: None
[1702228041599] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1702228041599] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc287642520> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc287268b90>>)
[1702228041643] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc287642520> ret: None
[1702228041643] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1702228041643] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc287642520> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc287268b90>>)
[1702228041687] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc287642520> ret: None
[1702228041687] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1702228041687] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc287642520> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc287268b90>>)
[1702228041731] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc287642520> ret: None
[1702228041731] [DBG] MQTT exit <function mqtt_transport.connect at 0x7fc287641d00> ret: None
[1702228041732] [DBG] HUB Step, state: 0 (next: 1702228042732)
[1702228041732] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1702228041732] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fc2876423e0> ('/reg', '48:3f:da:55:07:5b')
[1702228041775] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fc2876423e0> ret: None
[1702228041819] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1702228041777 }
[1702228041819] [INFO] HUB Registration finish, time: 1702228041777
[1702228041819] [DBG] FW-UPD enter <function device_base.register at 0x7fc2873d8720> (1702228041,)
[1702228041819] [INFO] FW-UPD Device 3996365522 registration on the server @ 1702228041
[1702228041819] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1702228041819] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc287642520> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc287268b90>>)
[1702228041863] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc287642520> ret: None
[1702228041863] [DBG] FW-UPD exit <function device_base.register at 0x7fc2873d8720> ret: None
[1702228042732] [DBG] HUB Step, state: 1 (next: 1702228043732)
[1702228042732] [DBG] FW-UPD enter <function device_base.info_req at 0x7fc2873d8fe0> ()
[1702228042732] [DBG] FW-UPD exit <function device_base.info_req at 0x7fc2873d8fe0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1702228041}}
[1702228042732] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231210;master;e46d1687d9b13615140f1b18b85d3462da1a4742", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1702228041}}]} }
[1702228042732] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fc2876423e0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231210;master;e46d1687d9b13615140f1b18b85d3462da1a4742", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1702228041}}]}')
[1702228042732] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fc2876423e0> ret: None
[1702228043758] [INFO] HUB Message: {topic: >hub, value: 3996365522 }
[1702228043758] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fc2876423e0> ('<hub', '48:3f:da:55:07:5b')
[1702228043758] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fc2876423e0> ret: None
[1702228043761] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7fc2876427a0> ()
[1702228043761] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7fc2876427a0> ret: None
[1702228043761] [WARN] HUB Disconecting from broker
Suite stderr:
2023-12-10 17:07:22,742 - TEST - INFO - OP take: 1009.974 ms
2023-12-10 17:07:22,747 - TEST - INFO - Connected with result code: 0
2023-12-10 17:07:22,754 - TEST - INFO - OP take: 10.122 ms
2023-12-10 17:07:23,760 - TEST - INFO - OP take: 0.008 ms
2023-12-10 17:07:23,768 - TEST - WARNING - Disconecting from broker