MySensor constructor should accept serial device or stream object
-
On my Arduino Uno the only available HardwareSerial is used by MySensor for printing log messages. It would be nice, if the serial device that MySensor uses, (or at least a stream object) could be passed into the MySensor constructor. Then I could use Serial where the uart-buffer is useful e.g. RS485 communication and pass for example an AltSoftSerial instance into MySensor.
-
what about a MEGA any any of the 3 other UARTs?
I see them for under US$ 12.00 on eBay...
-
You are right, that is a possible solution for my problem. I think changing software should be favoured over changing hardware.
3 out of 3
Suggested Topics
-
Building a gateway with two transport layers
Hardware • 15 Aug 2021, 10:31 • Giovanni Chiva 15 Aug 2021, 18:02 -
Stabile Controller
Troubleshooting • 5 Mar 2015, 14:08 • C.r.a.z.y. 8 Mar 2015, 15:34 -
serial, Ethernet to MQTT
MyController.org • 14 Jun 2021, 09:38 • jkandasa 14 Jun 2021, 16:56 -
💬 Arduino Serial Gateway for RFM69HW
OpenHardware.io • 24 Jan 2017, 12:49 • openhardware.io 8 Jun 2017, 10:06 -
Combining Serial and MQTT/Ethernet Gateway
Troubleshooting • 12 Feb 2015, 13:13 • codenea 28 Apr 2015, 15:09 -
MySensors MQTT gateway and serial rs485 sensor node communication
Development • 5 Aug 2017, 06:31 • ehome 5 Aug 2017, 08:15 -
Sending serial commands to sensors
Controllers • 11 May 2015, 16:58 • Tango2 11 Jun 2015, 10:42 -
Serial Gateway mystery
Troubleshooting • 21 Oct 2014, 11:51 • cribben 28 Oct 2014, 00:21