Test Report : TEST-hub_topic_test-20231112203802.xml
Test Suite: hub_topic_test-20231112203802
Results
| Duration | 3.336 sec |
| Tests | 1 |
| Failures | 0 |
Tests
hub_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.336 sec |
| Failed | None |
None
Suite stdout:
[1699821482372] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1699821482372] [INFO] FW-UPD Initialized
[1699821482372] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f625a038220> (<uclient.hub.HUB object at 0x7f6259eb0910>,)
[1699821482372] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f625a038220> ret: None
[1699821482372] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f625a242b60> ('<48:3f:da:55:07:5b/status', '-1')
[1699821482372] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f625a242b60> ret: None
[1699821482372] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f625a2428e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f6259eb0910>>,)
[1699821482372] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f625a2428e0> ret: None
[1699821482372] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f625a242a20> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f6259eb0910>>,)
[1699821482372] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f625a242a20> ret: None
[1699821482372] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f625a241d00> ('x.ks.ua', 1883)
[1699821483377] [INFO] HUB Connected
[1699821483377] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f625a242520> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6259eb0910>>)
[1699821483420] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f625a242520> ret: None
[1699821483420] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f625a242520> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6259eb0910>>)
[1699821483464] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f625a242520> ret: None
[1699821483464] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1699821483464] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f625a242520> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6259eb0910>>)
[1699821483509] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f625a242520> ret: None
[1699821483509] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1699821483509] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f625a242520> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6259eb0910>>)
[1699821483552] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f625a242520> ret: None
[1699821483552] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1699821483552] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f625a242520> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6259eb0910>>)
[1699821483596] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f625a242520> ret: None
[1699821483596] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1699821483596] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f625a242520> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6259eb0910>>)
[1699821483640] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f625a242520> ret: None
[1699821483640] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1699821483640] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f625a242520> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6259eb0910>>)
[1699821483684] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f625a242520> ret: None
[1699821483684] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f625a241d00> ret: None
[1699821483685] [DBG] HUB Step, state: 0 (next: 1699821484685)
[1699821483685] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1699821483685] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f625a2423e0> ('/reg', '48:3f:da:55:07:5b')
[1699821483728] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f625a2423e0> ret: None
[1699821483772] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1699821483733 }
[1699821483772] [INFO] HUB Registration finish, time: 1699821483733
[1699821483772] [DBG] FW-UPD enter <function device_base.register at 0x7f625a038720> (1699821483,)
[1699821483772] [INFO] FW-UPD Device 3996365522 registration on the server @ 1699821483
[1699821483772] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1699821483772] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f625a242520> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f6259eb0910>>)
[1699821483816] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f625a242520> ret: None
[1699821483817] [DBG] FW-UPD exit <function device_base.register at 0x7f625a038720> ret: None
[1699821484685] [DBG] HUB Step, state: 1 (next: 1699821485685)
[1699821484685] [DBG] FW-UPD enter <function device_base.info_req at 0x7f625a038fe0> ()
[1699821484685] [DBG] FW-UPD exit <function device_base.info_req at 0x7f625a038fe0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1699821483}}
[1699821484685] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231112;master;ad086b669325bee6ce018858acdd31cd9dd85e70", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699821483}}]} }
[1699821484685] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f625a2423e0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231112;master;ad086b669325bee6ce018858acdd31cd9dd85e70", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699821483}}]}')
[1699821484685] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f625a2423e0> ret: None
[1699821485707] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f625a2427a0> ()
[1699821485707] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f625a2427a0> ret: None
Suite stderr:
2023-11-12 20:38:04,691 - TEST - INFO - OP take: 1005.69 ms
2023-11-12 20:38:04,700 - TEST - INFO - Connected with result code: 0
2023-11-12 20:38:04,704 - TEST - INFO - OP take: 10.076 ms
2023-11-12 20:38:05,707 - TEST - INFO - OP take: 0.008 ms
2023-11-12 20:38:05,707 - TEST - WARNING - Disconecting from broker