Test Report : TEST-hub_topic_test-20240202135244.xml
Test Suite: hub_topic_test-20240202135244
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:
[1706881964386] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1706881964387] [INFO] FW-UPD Initialized
[1706881964387] [DBG] FW-UPD enter <function device_base.set_hub at 0x7ff98024c220> (<uclient.hub.HUB object at 0x7ff9800c1050>,)
[1706881964387] [DBG] FW-UPD exit <function device_base.set_hub at 0x7ff98024c220> ret: None
[1706881964387] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7ff9804bab60> ('<48:3f:da:55:07:5b/status', '-1')
[1706881964387] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7ff9804bab60> ret: None
[1706881964387] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7ff9804ba8e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7ff9800c1050>>,)
[1706881964387] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7ff9804ba8e0> ret: None
[1706881964387] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7ff9804baa20> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7ff9800c1050>>,)
[1706881964387] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7ff9804baa20> ret: None
[1706881964387] [WARN] HUB Try to connect without uri-schema
[1706881964387] [DBG] MQTT enter <function mqtt_transport.connect at 0x7ff9804b9d00> ('x.ks.ua',)
[1706881965391] [INFO] HUB Connected
[1706881965391] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff9804ba520> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff9800c1050>>)
[1706881965435] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff9804ba520> ret: None
[1706881965435] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff9804ba520> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff9800c1050>>)
[1706881965479] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff9804ba520> ret: None
[1706881965479] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1706881965479] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff9804ba520> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff9800c1050>>)
[1706881965523] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff9804ba520> ret: None
[1706881965523] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1706881965523] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff9804ba520> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff9800c1050>>)
[1706881965567] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff9804ba520> ret: None
[1706881965567] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1706881965567] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff9804ba520> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff9800c1050>>)
[1706881965611] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff9804ba520> ret: None
[1706881965611] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1706881965611] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff9804ba520> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff9800c1050>>)
[1706881965655] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff9804ba520> ret: None
[1706881965655] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1706881965655] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff9804ba520> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff9800c1050>>)
[1706881965699] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff9804ba520> ret: None
[1706881965699] [DBG] MQTT exit <function mqtt_transport.connect at 0x7ff9804b9d00> ret: None
[1706881965700] [DBG] HUB Step, state: 0 (next: 1706881966700)
[1706881965700] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1706881965700] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff9804ba3e0> ('/reg', '48:3f:da:55:07:5b')
[1706881965743] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff9804ba3e0> ret: None
[1706881965787] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1706881965746 }
[1706881965787] [INFO] HUB Registration finish, time: 1706881965746
[1706881965787] [DBG] FW-UPD enter <function device_base.register at 0x7ff98024c720> (1706881965,)
[1706881965787] [INFO] FW-UPD Device 3996365522 registration on the server @ 1706881965
[1706881965787] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1706881965787] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff9804ba520> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff9800c1050>>)
[1706881965832] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff9804ba520> ret: None
[1706881965832] [DBG] FW-UPD exit <function device_base.register at 0x7ff98024c720> ret: None
[1706881966700] [DBG] HUB Step, state: 1 (next: 1706881967700)
[1706881966700] [DBG] FW-UPD enter <function device_base.info_req at 0x7ff98024cfe0> ()
[1706881966700] [DBG] FW-UPD exit <function device_base.info_req at 0x7ff98024cfe0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1706881965}}
[1706881966700] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706881965}}]} }
[1706881966700] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff9804ba3e0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1706881965}}]}')
[1706881966700] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff9804ba3e0> ret: None
[1706881967720] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7ff9804ba7a0> ()
[1706881967720] [WARN] HUB Disconecting from broker
[1706881967720] [WARN] MQTT Reconnecting in 1s
[1706881967721] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7ff9804ba7a0> ret: None
Suite stderr:
2024-02-02 13:52:46,705 - TEST - INFO - OP take: 1005.616 ms
2024-02-02 13:52:46,713 - TEST - INFO - Connected with result code: 0
2024-02-02 13:52:46,718 - TEST - INFO - OP take: 10.37 ms
2024-02-02 13:52:47,719 - TEST - INFO - OP take: 0.005 ms
2024-02-02 13:52:47,722 - TEST - WARNING - Disconecting from broker