diff --git a/docs/meshtastic/index.html b/docs/meshtastic/index.html index 3c0e845..8a62811 100644 --- a/docs/meshtastic/index.html +++ b/docs/meshtastic/index.html @@ -127,6 +127,7 @@ import time import sys import traceback import time +import base64 from . import mesh_pb2 from . import util from pubsub import pub @@ -261,6 +262,14 @@ class MeshInterface: t.set_radio.CopyFrom(self.radioConfig) self._sendToRadio(t) + @property + def channelURL(self): + """The sharable URL that describes the current channel + """ + bytes = self.radioConfig.channel_settings.SerializeToString() + s = base64.urlsafe_b64encode(bytes).decode('ascii') + return f"https://www.meshtastic.org/c/#{s}" + def _generatePacketId(self): """Get a new unique packet ID""" if self.currentPacketId is None: @@ -704,6 +713,7 @@ class StreamInterface(MeshInterface):