Test Report : TEST-hub_topic_test-20240413183705.xml
Test Suite: hub_topic_test-20240413183705
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:
[1713033425846] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1713033425846] [INFO] FW-UPD Initialized
[1713033425846] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f468e2e0540> (<uclient.hub.HUB object at 0x7f468e15c450>,)
[1713033425846] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f468e2e0540> ret: None
[1713033425846] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f468e4eae80> ('<48:3f:da:55:07:5b/status', '-1')
[1713033425846] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f468e4eae80> ret: None
[1713033425846] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f468e4eac00> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f468e15c450>>,)
[1713033425846] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f468e4eac00> ret: None
[1713033425846] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f468e4ead40> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f468e15c450>>,)
[1713033425846] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f468e4ead40> ret: None
[1713033425846] [WARN] HUB Try to connect without uri-schema
[1713033425846] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f468e4ea5c0> ('x.ks.ua',)
[1713033426853] [INFO] HUB Connected
[1713033426853] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f468e4ea840> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f468e15c450>>)
[1713033426898] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f468e4ea840> ret: None
[1713033426898] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f468e4ea840> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f468e15c450>>)
[1713033426942] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f468e4ea840> ret: None
[1713033426942] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713033426942] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f468e4ea840> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f468e15c450>>)
[1713033426986] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f468e4ea840> ret: None
[1713033426986] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713033426986] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f468e4ea840> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f468e15c450>>)
[1713033427030] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f468e4ea840> ret: None
[1713033427030] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713033427030] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f468e4ea840> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f468e15c450>>)
[1713033427074] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f468e4ea840> ret: None
[1713033427074] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713033427074] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f468e4ea840> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f468e15c450>>)
[1713033427118] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f468e4ea840> ret: None
[1713033427118] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713033427118] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f468e4ea840> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f468e15c450>>)
[1713033427162] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f468e4ea840> ret: None
[1713033427162] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f468e4ea5c0> ret: None
[1713033427164] [DBG] HUB Step, state: 0 (next: 1713033428164)
[1713033427164] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1713033427164] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f468e4ea700> ('/reg', '48:3f:da:55:07:5b')
[1713033427207] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f468e4ea700> ret: None
[1713033427250] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1713033427210 }
[1713033427250] [INFO] HUB Registration finish, time: 1713033427210
[1713033427250] [DBG] FW-UPD enter <function device_base.register at 0x7f468e2e0a40> (1713033427,)
[1713033427250] [INFO] FW-UPD Device 3996365522 registration on the server @ 1713033427
[1713033427250] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713033427250] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f468e4ea840> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f468e15c450>>)
[1713033427294] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f468e4ea840> ret: None
[1713033427295] [DBG] FW-UPD exit <function device_base.register at 0x7f468e2e0a40> ret: None
[1713033428164] [DBG] HUB Step, state: 1 (next: 1713033429164)
[1713033428164] [DBG] FW-UPD enter <function device_base.info_req at 0x7f468e2e1300> ()
[1713033428164] [DBG] FW-UPD exit <function device_base.info_req at 0x7f468e2e1300> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713033427}}
[1713033428164] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240413;master;3ad924fe4d0ad95a2a5e5eda31858f370b1d89ff", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713033427}}]} }
[1713033428164] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f468e4ea700> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240413;master;3ad924fe4d0ad95a2a5e5eda31858f370b1d89ff", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713033427}}]}')
[1713033428164] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f468e4ea700> ret: None
[1713033429187] [INFO] HUB Message: {topic: >hub, value: 3996365522 }
[1713033429187] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f468e4ea700> ('<hub', '48:3f:da:55:07:5b')
[1713033429188] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f468e4eaac0> ()
[1713033429188] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f468e4eaac0> ret: None
[1713033429192] [WARN] HUB Disconecting from broker
Suite stderr:
2024-04-13 18:37:08,170 - TEST - INFO - OP take: 1006.936 ms
2024-04-13 18:37:08,179 - TEST - INFO - Connected with result code: 0
2024-04-13 18:37:08,184 - TEST - INFO - OP take: 10.081 ms
2024-04-13 18:37:09,188 - TEST - INFO - OP take: 0.005 ms
2024-04-13 18:37:09,188 - TEST - WARNING - Disconecting from broker