Command line OK, can't get interface = meshtastic.StreamInterface() syntax right (on OSX)

Hi, loving Meshtastic. Wanting to use the Python API from Mac.
Command line tool Meshtastic works fine, but I can’t get the Python syntax right to use the port.
What should ‘interface = meshtastic.StreamInterface()’ look like for me?

glob.glob(‘/dev/tty.*’)
[‘/dev/tty.Bluetooth-Incoming-Port’, ‘/dev/tty.iPhone-WirelessiAP’, ‘/dev/tty.SLAB_USBtoUART’, ‘/dev/tty.usbserial-0001’]

Thanks
Greg

1 Like

I bet you’ll want:

interface = meshtastic.StreamInterface("‘/dev/tty.usbserial-0001")

Though I don’t have a mac so hopefully a mac person can confirm.