Test Report : TEST-hub_topic_test-20240330135821.xml
Test Suite: hub_topic_test-20240330135821
Results
| Duration | 3.343 sec |
| Tests | 1 |
| Failures | 0 |
Tests
hub_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.343 sec |
| Failed | None |
None
Suite stdout:
[1711807101846] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1711807101846] [INFO] FW-UPD Initialized
[1711807101846] [DBG] FW-UPD enter <function device_base.set_hub at 0x7fb31a690540> (<uclient.hub.HUB object at 0x7fb31a50d290>,)
[1711807101846] [DBG] FW-UPD exit <function device_base.set_hub at 0x7fb31a690540> ret: None
[1711807101847] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7fb31a902e80> ('<48:3f:da:55:07:5b/status', '-1')
[1711807101847] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7fb31a902e80> ret: None
[1711807101847] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7fb31a902c00> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fb31a50d290>>,)
[1711807101847] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7fb31a902c00> ret: None
[1711807101847] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7fb31a902d40> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fb31a50d290>>,)
[1711807101847] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7fb31a902d40> ret: None
[1711807101847] [WARN] HUB Try to connect without uri-schema
[1711807101847] [DBG] MQTT enter <function mqtt_transport.connect at 0x7fb31a9025c0> ('x.ks.ua',)
[1711807102854] [INFO] HUB Connected
[1711807102854] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb31a902840> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb31a50d290>>)
[1711807102898] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb31a902840> ret: None
[1711807102898] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb31a902840> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb31a50d290>>)
[1711807102942] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb31a902840> ret: None
[1711807102942] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711807102942] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb31a902840> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb31a50d290>>)
[1711807102986] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb31a902840> ret: None
[1711807102986] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711807102986] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb31a902840> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb31a50d290>>)
[1711807103030] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb31a902840> ret: None
[1711807103030] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711807103030] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb31a902840> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb31a50d290>>)
[1711807103074] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb31a902840> ret: None
[1711807103074] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711807103074] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb31a902840> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb31a50d290>>)
[1711807103118] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb31a902840> ret: None
[1711807103118] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711807103118] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb31a902840> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb31a50d290>>)
[1711807103162] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb31a902840> ret: None
[1711807103162] [DBG] MQTT exit <function mqtt_transport.connect at 0x7fb31a9025c0> ret: None
[1711807103163] [DBG] HUB Step, state: 0 (next: 1711807104163)
[1711807103163] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1711807103163] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fb31a902700> ('/reg', '48:3f:da:55:07:5b')
[1711807103206] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fb31a902700> ret: None
[1711807103250] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1711807103209 }
[1711807103250] [INFO] HUB Registration finish, time: 1711807103209
[1711807103250] [DBG] FW-UPD enter <function device_base.register at 0x7fb31a690a40> (1711807103,)
[1711807103250] [INFO] FW-UPD Device 3996365522 registration on the server @ 1711807103
[1711807103250] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711807103250] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb31a902840> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb31a50d290>>)
[1711807103294] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb31a902840> ret: None
[1711807103294] [DBG] FW-UPD exit <function device_base.register at 0x7fb31a690a40> ret: None
[1711807104163] [DBG] HUB Step, state: 1 (next: 1711807105163)
[1711807104163] [DBG] FW-UPD enter <function device_base.info_req at 0x7fb31a691300> ()
[1711807104163] [DBG] FW-UPD exit <function device_base.info_req at 0x7fb31a691300> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711807103}}
[1711807104163] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240330;master;d9604b086c82824a652e822a8dd1b981e006f9bd", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711807103}}]} }
[1711807104163] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fb31a902700> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240330;master;d9604b086c82824a652e822a8dd1b981e006f9bd", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711807103}}]}')
[1711807104163] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fb31a902700> ret: None
[1711807105186] [INFO] HUB Message: {topic: >hub, value: 3996365522 }
[1711807105186] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fb31a902700> ('<hub', '48:3f:da:55:07:5b')
[1711807105187] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7fb31a902ac0> ()
[1711807105187] [WARN] HUB Disconecting from broker
[1711807105187] [WARN] MQTT Reconnecting in 1s
[1711807105188] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7fb31a902ac0> ret: None
Suite stderr:
2024-03-30 13:58:24,170 - TEST - INFO - OP take: 1006.963 ms
2024-03-30 13:58:24,176 - TEST - INFO - Connected with result code: 0
2024-03-30 13:58:24,182 - TEST - INFO - OP take: 10.097 ms
2024-03-30 13:58:25,187 - TEST - INFO - OP take: 0.006 ms
2024-03-30 13:58:25,188 - TEST - WARNING - Disconecting from broker