tino / pyFirmata

Python interface for the Firmata (http://firmata.org/) protocol. It is compliant with Firmata 2.1. Any help with updating to 2.2 is welcome. The Capability Query is implemented, but the Pin State Query feature not yet.
MIT License
578 stars 191 forks source link

Request socket based serial port connection #59

Open mhoffma opened 7 years ago

mhoffma commented 7 years ago

I would like to be able to open a socket stream and not be limited to a hardwired serial connection, this is useful for devices that have Wifi shields or are just plain old wifi devices themselves that have some capability. This firmata protocol works great over a wire with no need to craft a protocol that does the same thing. The ask is to add SocketSerial to the code base.

if port is of the form ipaddr:port then a socket is opened instead of a serial connection. see PL #58