I've merged a pull request from Norbert Truchsess into the dev branch on
github (https://github.com/firmata/arduino/tree/dev). This update fixes
Stream in Firmata by declaring FirmataSerial as a pointer to Stream. This
enables the stream to be properly set by calling
Firmata.begin(referenceToStream). The FirmataSerial.write method has also
been wrapped by Firmata so you can call Firmata.write now rather than
Serial.write to write data to stream. This update will enable other types
of streams such as Ethernet and Wi-Fi or even SoftSerial without needing to
create a second FirmataClass instance.
This update has been tested successfully against the Firmata examples and
the firmata_test application. It does not change the existing interface in
any way and maintains backwards compatibility.
I'll keep this open for any additional testing and comments until Monday
(Feb 11th). At which point if there are not objections I plan to merge this
code into the master branch and update the firmata version to 2.3.4.
Get latest updates about Open Source Projects, Conferences and News.