Test Report : TEST-last_will_test-20240120191115.xml
Test Suite: last_will_test-20240120191115
Results
| Duration | 3.342 sec |
| Tests | 1 |
| Failures | 0 |
Tests
last_will_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.342 sec |
| Failed | None |
None
Suite stdout:
[1705777875173] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1705777875173] [INFO] FW-UPD Initialized
[1705777875173] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f2d7cbfb9c0> (<uclient.hub.HUB object at 0x7f2d7c800510>,)
[1705777875173] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f2d7cbfb9c0> ret: None
[1705777875173] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f2d7cbfa340> ('<48:3f:da:55:07:5b/status', '-1')
[1705777875173] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f2d7cbfa340> ret: None
[1705777875173] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f2d7cbfa0c0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f2d7c800510>>,)
[1705777875173] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f2d7cbfa0c0> ret: None
[1705777875173] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f2d7cbfa200> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f2d7c800510>>,)
[1705777875173] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f2d7cbfa200> ret: None
[1705777875173] [WARN] HUB Try to connect without uri-schema
[1705777875173] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f2d7cbf94e0> ('x.ks.ua',)
[1705777876176] [INFO] HUB Connected
[1705777876176] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2d7c800510>>)
[1705777876219] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ret: None
[1705777876219] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2d7c800510>>)
[1705777876264] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ret: None
[1705777876264] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1705777876264] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2d7c800510>>)
[1705777876307] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ret: None
[1705777876307] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1705777876307] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2d7c800510>>)
[1705777876351] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ret: None
[1705777876351] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1705777876351] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2d7c800510>>)
[1705777876395] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ret: None
[1705777876395] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1705777876395] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2d7c800510>>)
[1705777876439] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ret: None
[1705777876439] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1705777876439] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2d7c800510>>)
[1705777876483] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ret: None
[1705777876483] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f2d7cbf94e0> ret: None
[1705777876484] [DBG] HUB Step, state: 0 (next: 1705777877484)
[1705777876485] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1705777876485] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f2d7cbf9bc0> ('/reg', '48:3f:da:55:07:5b')
[1705777876529] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f2d7cbf9bc0> ret: None
[1705777876575] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1705777876531 }
[1705777876575] [INFO] HUB Registration finish, time: 1705777876531
[1705777876575] [DBG] FW-UPD enter <function device_base.register at 0x7f2d7cbfbec0> (1705777876,)
[1705777876575] [INFO] FW-UPD Device 3996365522 registration on the server @ 1705777876
[1705777876575] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1705777876575] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2d7c800510>>)
[1705777876619] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2d7cbf9d00> ret: None
[1705777876619] [DBG] FW-UPD exit <function device_base.register at 0x7f2d7cbfbec0> ret: None
[1705777877484] [DBG] HUB Step, state: 1 (next: 1705777878484)
[1705777877484] [DBG] FW-UPD enter <function device_base.info_req at 0x7f2d7c9887c0> ()
[1705777877484] [DBG] FW-UPD exit <function device_base.info_req at 0x7f2d7c9887c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1705777876}}
[1705777877484] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240120;master;8222f96dd73c289fcc6652c68753a172c6033809", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1705777876}}]} }
[1705777877484] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f2d7cbf9bc0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240120;master;8222f96dd73c289fcc6652c68753a172c6033809", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1705777876}}]}')
[1705777877484] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f2d7cbf9bc0> ret: None
[1705777878502] [WARN] HUB Disconecting from broker
[1705777878502] [WARN] MQTT Reconnecting in 1s
Suite stderr:
2024-01-20 19:11:17,489 - TEST - INFO - OP take: 1004.552 ms
2024-01-20 19:11:17,497 - TEST - INFO - Connected with result code: 0
2024-01-20 19:11:17,501 - TEST - INFO - OP take: 10.081 ms
2024-01-20 19:11:18,513 - TEST - INFO - OP take: 10.133 ms
2024-01-20 19:11:18,514 - TEST - WARNING - Disconecting from broker