You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got Exception: This version of meshtastic-python requires device firmware version 1.2 or later. For more information see https://tinyurl.com/5bjsxu32 upon statement interface = meshtastic.serial_interface.SerialInterface(). Just try this:
``
import meshtastic
import meshtastic.serial_interface
from pubsub import pub
def onReceive(packet, interface): # called when a packet arrives
print(f"Received: {packet}")
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")
Are you sure that the imported version of meshtastic in your script is also on 2.2.0, and not only the CLI? Maybe you have multiple versions of the package on your system. Since this check was already removed from the source code here: 055da95
Sorry, it was my fault, actually meshtastic was updated to 2.2.0 on a different python ver (I have 2 versions on my PC) but the one driving my application. After updating meshtastic on the correct python version now all is fine.
Got Exception: This version of meshtastic-python requires device firmware version 1.2 or later. For more information see
https://tinyurl.com/5bjsxu32 upon statement interface = meshtastic.serial_interface.SerialInterface(). Just try this:
``
import meshtastic
import meshtastic.serial_interface
from pubsub import pub
def onReceive(packet, interface): # called when a packet arrives
print(f"Received: {packet}")
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")
pub.subscribe(onReceive, "meshtastic.receive")
pub.subscribe(onConnection, "meshtastic.connection.established")
``
The text was updated successfully, but these errors were encountered: