Test Report : TEST-hub_topic_test-20231102153300.xml
Test Suite: hub_topic_test-20231102153300
Results
| Duration | 3.371 sec |
| Tests | 1 |
| Failures | 0 |
Tests
hub_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.371 sec |
| Failed | None |
None
Suite stdout:
[1698939180908] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1698939180909] [INFO] FW-UPD Initialized
[1698939180909] [DBG] FW-UPD enter <function device_base.set_hub at 0x7fab9088c040> (<uclient.hub.HUB object at 0x7fab914527d0>,)
[1698939180909] [DBG] FW-UPD exit <function device_base.set_hub at 0x7fab9088c040> ret: None
[1698939180909] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7fab90a96840> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fab914527d0>>,)
[1698939180909] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7fab90a96840> ret: None
[1698939180909] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7fab90a96980> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fab914527d0>>,)
[1698939180909] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7fab90a96980> ret: None
[1698939180909] [DBG] MQTT enter <function mqtt_transport.connect at 0x7fab90a95d00> ('x.ks.ua', 1883)
[1698939181914] [INFO] HUB Connected
[1698939181914] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fab90a96480> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fab914527d0>>)
[1698939181956] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fab90a96480> ret: None
[1698939181956] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fab90a96480> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fab914527d0>>)
[1698939182000] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fab90a96480> ret: None
[1698939182000] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1698939182000] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fab90a96480> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fab914527d0>>)
[1698939182045] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fab90a96480> ret: None
[1698939182045] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1698939182045] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fab90a96480> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fab914527d0>>)
[1698939182089] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fab90a96480> ret: None
[1698939182089] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1698939182089] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fab90a96480> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fab914527d0>>)
[1698939182132] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fab90a96480> ret: None
[1698939182133] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1698939182133] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fab90a96480> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fab914527d0>>)
[1698939182176] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fab90a96480> ret: None
[1698939182176] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1698939182176] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fab90a96480> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fab914527d0>>)
[1698939182224] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fab90a96480> ret: None
[1698939182224] [DBG] MQTT exit <function mqtt_transport.connect at 0x7fab90a95d00> ret: None
[1698939182226] [DBG] HUB Step, state: 0 (next: 1698939183225)
[1698939182226] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1698939182226] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fab90a96340> ('/reg', '48:3f:da:55:07:5b')
[1698939182269] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fab90a96340> ret: None
[1698939182312] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1698939182277 }
[1698939182312] [INFO] HUB Registration finish, time: 1698939182277
[1698939182312] [DBG] FW-UPD enter <function device_base.register at 0x7fab9088c540> (1698939182,)
[1698939182312] [INFO] FW-UPD Device 3996365522 registration on the server @ 1698939182
[1698939182312] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1698939182312] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fab90a96480> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fab914527d0>>)
[1698939182356] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fab90a96480> ret: None
[1698939182356] [DBG] FW-UPD exit <function device_base.register at 0x7fab9088c540> ret: None
[1698939183225] [DBG] HUB Step, state: 1 (next: 1698939184225)
[1698939183225] [DBG] FW-UPD enter <function device_base.info_req at 0x7fab9088ce00> ()
[1698939183225] [DBG] FW-UPD exit <function device_base.info_req at 0x7fab9088ce00> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1698939182}}
[1698939183225] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231102;master;f37bdeed0cc654c9dd8bdd7b30ba0d2ebff97aba", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1698939182}}]} }
[1698939183225] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fab90a96340> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231102;master;f37bdeed0cc654c9dd8bdd7b30ba0d2ebff97aba", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1698939182}}]}')
[1698939183225] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fab90a96340> ret: None
[1698939184257] [INFO] HUB Message: {topic: >hub, value: 3996365522 }
[1698939184257] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fab90a96340> ('<hub', '48:3f:da:55:07:5b')
[1698939184258] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fab90a96340> ret: None
[1698939184272] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7fab90a96700> ()
[1698939184272] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7fab90a96700> ret: None
[1698939184273] [WARN] HUB Disconecting from broker
Suite stderr:
2023-11-02 15:33:03,233 - TEST - INFO - OP take: 1007.565 ms
2023-11-02 15:33:03,242 - TEST - INFO - Connected with result code: 0
2023-11-02 15:33:03,246 - TEST - INFO - OP take: 10.078 ms
2023-11-02 15:33:04,263 - TEST - INFO - OP take: 0.008 ms
2023-11-02 15:33:04,278 - TEST - WARNING - Disconecting from broker