Files
python/meshtastic
geeksville 3886bc16d7 Update python client to use the 'modern' meshtastic protocol init flow
Some time ago I updated the protocol so that after sending NODEINFOs to
client devices (via fromRadio protobufs), it would proactively send the
channel definitions.  Prior to this the client had to ask for each channel
by sending an admin request.  This handshaking was really slow for mobile/
bluetooth clients.  So in the current device code (last couple of years)
the device automatically sends this info to the client during initial config
download.

Unfortunately I never updated the python client to expect this.  I assumed
(incorrectly) that it would just cope and keep sending the channel requests
the old way it always had (which is still supported by devices - and
required for remote administration of nodes).

This change removes sending channel requests (for the local node only)
from the python startup code.  It also now understands (no longer ignoring)
the channels which were sent proactively by the local device.

This makes connection/config/api operations from the python client 100%
reliable again.  Previously it would only work sometimes depending on how
quickly it was able to get the local node db downloaded.

Also this flow is much faster - which should help all users of the python
api.
2024-04-27 11:59:17 -07:00
..
2024-04-21 10:32:07 -07:00
2024-03-25 22:36:33 -07:00
2020-04-27 16:44:41 -07:00
2024-04-23 21:35:15 -07:00
2024-04-23 21:35:15 -07:00
2024-04-08 10:12:50 -07:00
2024-04-08 10:12:50 -07:00
2024-04-23 21:35:15 -07:00
2024-04-23 21:35:15 -07:00
2024-04-08 10:12:50 -07:00
2024-04-10 17:42:44 +01:00
2024-03-25 14:03:58 -07:00
2023-03-31 20:09:59 +02:00
2024-04-23 21:35:15 -07:00
2024-04-23 21:35:15 -07:00
2024-03-29 18:38:25 -07:00
2024-04-10 17:42:44 +01:00