python
python copied to clipboard
Running "--info" command takes 16 seconds when there is no internet
If I don't have internet it takes 16 seconds just to run --info to get my local node info
::text
$ time meshtastic --tcp 192.168.162.160 --info
Connected to radio
Owner: hydrogen18fixed (h18f)
...SNIP...
Channels:
Index 0: PRIMARY psk=default { "psk": "AQ==", "uplinkEnabled": true, "downlinkEnabled": true, "moduleSettings": { "positionPrecision": 13, "isClientMuted": false }, "channelNum": 0, "name": "", "id": 0 }
Primary channel URL: https://meshtastic.org/e/#CgsSAQEoATABOgIIDRIMCAE4AUADSAFQHmgB
real 0m16.186s
user 0m0.292s
sys 0m0.036s
if I have internet , it proceeds to download 380.9 kilobytes of JSON to check for a new version. Please remove this from the --info command as it makes this very difficult to use off grid.
I think it would be useful to add a --skip-version-check option.
However... the version check method has a timeout of 5s, so something else might be going on there too.