diff --git a/docs/meshtastic/index.html b/docs/meshtastic/index.html index 15cf58e..198c333 100644 --- a/docs/meshtastic/index.html +++ b/docs/meshtastic/index.html @@ -140,6 +140,9 @@ BROADCAST_NUM = 255 MY_CONFIG_ID = 42 +"""The numeric buildnumber (shared with android apps) specifying the level of device code we are guaranteed to understand""" +OUR_APP_VERSION = 167 + class MeshInterface: """Interface class for meshtastic devices @@ -242,6 +245,9 @@ class MeshInterface: logging.debug(f"Received: {asDict}") if fromRadio.HasField("my_info"): self.myInfo = fromRadio.my_info + if self.myInfo.min_app_version > OUR_APP_VERSION: + raise Exception( + "This device needs a newer python client, please \"pip install --upgrade meshtastic\"") elif fromRadio.HasField("radio"): self.radioConfig = fromRadio.radio elif fromRadio.HasField("node_info"): @@ -502,6 +508,13 @@ class StreamInterface(MeshInterface):
+

Global variables

+
+
var MY_CONFIG_ID
+
+

The numeric buildnumber (shared with android apps) specifying the level of device code we are guaranteed to understand

+
+
@@ -704,6 +717,9 @@ debugOut

logging.debug(f"Received: {asDict}") if fromRadio.HasField("my_info"): self.myInfo = fromRadio.my_info + if self.myInfo.min_app_version > OUR_APP_VERSION: + raise Exception( + "This device needs a newer python client, please \"pip install --upgrade meshtastic\"") elif fromRadio.HasField("radio"): self.radioConfig = fromRadio.radio elif fromRadio.HasField("node_info"): @@ -1077,6 +1093,11 @@ debugOut {stream} – If a stream is provided, any debug serial output from
  • meshtastic.util
  • +
  • Global variables

    + +
  • Classes

    Class variables

    +
    var CURRENT_PACKET_ID_FIELD_NUMBER
    +
    +
    +
    var DESCRIPTOR
    @@ -1734,14 +1841,30 @@ DESCRIPTOR._options = None
    +
    var MESSAGE_TIMEOUT_MSEC_FIELD_NUMBER
    +
    +
    +
    +
    var MIN_APP_VERSION_FIELD_NUMBER
    +
    +
    +
    var MY_NODE_NUM_FIELD_NUMBER
    +
    var NODE_NUM_BITS_FIELD_NUMBER
    +
    +
    +
    var NUM_CHANNELS_FIELD_NUMBER
    +
    var PACKET_ID_BITS_FIELD_NUMBER
    +
    +
    +
    var REGION_FIELD_NUMBER
    @@ -1917,15 +2040,27 @@ DESCRIPTOR._options = None
    +
    var ORIGINAL_ID_FIELD_NUMBER
    +
    +
    +
    var POSITION_FIELD_NUMBER
    -
    var REPLY_FIELD_NUMBER
    +
    var ROUTE_ERROR_FIELD_NUMBER
    -
    var REQUEST_FIELD_NUMBER
    +
    var ROUTE_REPLY_FIELD_NUMBER
    +
    +
    +
    +
    var ROUTE_REQUEST_FIELD_NUMBER
    +
    +
    +
    +
    var SOURCE_FIELD_NUMBER
    @@ -2118,6 +2253,7 @@ DESCRIPTOR._options = None
  • MyNodeInfo

  • @@ -2177,9 +2317,12 @@ DESCRIPTOR._options = None
  • DESCRIPTOR
  • DEST_FIELD_NUMBER
  • FAIL_ID_FIELD_NUMBER
  • +
  • ORIGINAL_ID_FIELD_NUMBER
  • POSITION_FIELD_NUMBER
  • -
  • REPLY_FIELD_NUMBER
  • -
  • REQUEST_FIELD_NUMBER
  • +
  • ROUTE_ERROR_FIELD_NUMBER
  • +
  • ROUTE_REPLY_FIELD_NUMBER
  • +
  • ROUTE_REQUEST_FIELD_NUMBER
  • +
  • SOURCE_FIELD_NUMBER
  • SUCCESS_ID_FIELD_NUMBER
  • USER_FIELD_NUMBER
  • WANT_RESPONSE_FIELD_NUMBER
  • diff --git a/setup.py b/setup.py index 740561a..04f8c7f 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ with open("README.md", "r") as fh: # This call to setup() does all the work setup( name="meshtastic", - version="0.5.4", + version="0.6.7", description="Python API & client shell for talking to Meshtastic devices", long_description=long_description, long_description_content_type="text/markdown",