Closed palmtreefrb closed 4 years ago
I can reproduce the problem... I guess I really need CI set-up with basic tests for all this... In general, it really helps if you have a log from the board as well. I'll try to fix today if I can put together the time.
Here is something that I see occasionally. The command executes successfully, immediately run the command again and it fails, then try again, then success.
$ ../mqboard/mqboard --server mqtt.xxxxxx.com --verbose --timeout 60 --port 8883 --tls --prefix aiotcomqtt ls Connecting to mqtt.xxxxxx.com:8883 Subscribing to aiotcomqtt/mqb/reply/out/cn7YTpyZ and aiotcomqtt/mqb/reply/err/cn7YTpyZ Pub aiotcomqtt/mqb/cmd/eval/cn7YTpyZ #0 last=True len=123 Received reply on topic 'aiotcomqtt/mqb/reply/out/cn7YTpyZ' with QoS 1 0.271kB in 0.568s -> 0.476kB/s 2700 board_config.py 2621 boot.py 0 lib/ 3644 main.py 0 safemode/ 0 sd/ 0 src/
$ ../mqboard/mqboard --server mqtt.xxxxxx.com --verbose --timeout 60 --port 8883 --tls --prefix aiotcomqtt ls safemode
Connecting to mqtt.xxxxxx.com:8883
Traceback (most recent call last):
File "../mqboard/mqboard", line 133, in
(venv) fredrick@fredrick-Studio-XPS-435MT:~/Development/micropython/mqboard/blinky$
Verifying "ls" that the directory contains files works ok. Trying "get" always times out, tried increasing --timeout 240 also
$ ../mqboard/mqboard --server mqtt.xxxxxx.com --verbose --port 8883 --tls --prefix aiotcomqtt ls Connecting to mqtt.xxxxxx.com:8883 Subscribing to aiotcomqtt/mqb/reply/out/XZu7DGgW and aiotcomqtt/mqb/reply/err/XZu7DGgW Pub aiotcomqtt/mqb/cmd/eval/XZu7DGgW #0 last=True len=123 Received reply on topic 'aiotcomqtt/mqb/reply/out/XZu7DGgW' with QoS 1 0.253kB in 0.580s -> 0.436kB/s 2700 board_config.py 2621 boot.py 0 lib/ 3644 main.py 0 safemode/ 0 src/
$ ../mqboard/mqboard --server mqtt.xxxxxx.com --verbose --timeout 240 --port 8883 --tls --prefix aiotcomqtt get main.py main.py Connecting to mqtt.xxxxxx.com:8883 Subscribing to aiotcomqtt/mqb/reply/out/0iwzLkt5 and aiotcomqtt/mqb/reply/err/0iwzLkt5 Error: Timeout!