mirror of
https://github.com/meshtastic/python.git
synced 2026-09-15 23:13:06 -04:00
fix example code
This commit is contained in:
1 parent
6942677b85
commit
2896073982
1 file changed
+1
-1
@@ -34,7 +34,7 @@ from pubsub import pub
|
||||
def onReceive(packet, interface): # called when a packet arrives
|
||||
print(f"Received: {packet}")
|
||||
|
||||
def onConnection(interface, topic): # called when we (re)connect to the radio
|
||||
def onConnection(interface, topic=pub.AUTO_TOPIC): # called when we (re)connect to the radio
|
||||
# defaults to broadcast, specify a destination ID if you wish
|
||||
interface.sendText("hello mesh")
|
||||
|
||||
|
||||
Reference in new issue
Block a user