fix example code

This commit is contained in:
geeksville
2020-09-11 12:08:06 -07:00
parent 6942677b85
commit 2896073982

View File

@@ -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")