Test Report : TEST-hub_topic_test-20231108220024.xml
Test Suite: hub_topic_test-20231108220024
Results
| Duration | 3.347 sec |
| Tests | 1 |
| Failures | 0 |
Tests
hub_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.347 sec |
| Failed | None |
None
Suite stdout:
[1699480824382] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1699480824382] [INFO] FW-UPD Initialized
[1699480824383] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f3704da4220> (<uclient.hub.HUB object at 0x7f3704c1ca10>,)
[1699480824383] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f3704da4220> ret: None
[1699480824383] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f3704faeb60> ('<48:3f:da:55:07:5b/status', '-1')
[1699480824383] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f3704faeb60> ret: None
[1699480824383] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f3704fae8e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f3704c1ca10>>,)
[1699480824383] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f3704fae8e0> ret: None
[1699480824383] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f3704faea20> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f3704c1ca10>>,)
[1699480824383] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f3704faea20> ret: None
[1699480824383] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f3704fadd00> ('x.ks.ua', 1883)
[1699480825387] [INFO] HUB Connected
[1699480825387] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3704fae520> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3704c1ca10>>)
[1699480825428] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3704fae520> ret: None
[1699480825428] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3704fae520> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3704c1ca10>>)
[1699480825472] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3704fae520> ret: None
[1699480825472] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1699480825472] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3704fae520> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3704c1ca10>>)
[1699480825516] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3704fae520> ret: None
[1699480825516] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1699480825516] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3704fae520> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3704c1ca10>>)
[1699480825560] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3704fae520> ret: None
[1699480825560] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1699480825560] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3704fae520> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3704c1ca10>>)
[1699480825604] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3704fae520> ret: None
[1699480825604] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1699480825604] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3704fae520> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3704c1ca10>>)
[1699480825648] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3704fae520> ret: None
[1699480825649] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1699480825649] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3704fae520> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3704c1ca10>>)
[1699480825692] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3704fae520> ret: None
[1699480825692] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f3704fadd00> ret: None
[1699480825693] [DBG] HUB Step, state: 0 (next: 1699480826693)
[1699480825693] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1699480825693] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3704fae3e0> ('/reg', '48:3f:da:55:07:5b')
[1699480825739] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3704fae3e0> ret: None
[1699480825780] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1699480825739 }
[1699480825780] [INFO] HUB Registration finish, time: 1699480825739
[1699480825780] [DBG] FW-UPD enter <function device_base.register at 0x7f3704da4720> (1699480825,)
[1699480825780] [INFO] FW-UPD Device 3996365522 registration on the server @ 1699480825
[1699480825780] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1699480825780] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f3704fae520> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f3704c1ca10>>)
[1699480825825] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f3704fae520> ret: None
[1699480825825] [DBG] FW-UPD exit <function device_base.register at 0x7f3704da4720> ret: None
[1699480826693] [DBG] HUB Step, state: 1 (next: 1699480827693)
[1699480826693] [DBG] FW-UPD enter <function device_base.info_req at 0x7f3704da4fe0> ()
[1699480826693] [DBG] FW-UPD exit <function device_base.info_req at 0x7f3704da4fe0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1699480825}}
[1699480826693] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231108;master;41227627d69a88d88bb532de6fc4a842fc1a2e9c", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699480825}}]} }
[1699480826693] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3704fae3e0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231108;master;41227627d69a88d88bb532de6fc4a842fc1a2e9c", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699480825}}]}')
[1699480826693] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3704fae3e0> ret: None
[1699480827718] [INFO] HUB Message: {topic: >hub, value: 3996365522 }
[1699480827718] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f3704fae3e0> ('<hub', '48:3f:da:55:07:5b')
[1699480827718] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f3704fae3e0> ret: None
[1699480827722] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f3704fae7a0> ()
[1699480827722] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f3704fae7a0> ret: None
[1699480827723] [WARN] HUB Disconecting from broker
Suite stderr:
2023-11-08 22:00:26,699 - TEST - INFO - OP take: 1005.59 ms
2023-11-08 22:00:26,710 - TEST - INFO - Connected with result code: 0
2023-11-08 22:00:26,712 - TEST - INFO - OP take: 10.176 ms
2023-11-08 22:00:27,722 - TEST - INFO - OP take: 0.01 ms
2023-11-08 22:00:27,728 - TEST - WARNING - Disconecting from broker