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.
1 out of 3
Suggested Topics
-
💬 LCDUINO
OpenHardware.io • 23 Feb 2021, 00:29 • openhardware.io 3 May 2021, 08:35 -
💬 The Logger Machine - Short and long term serial logging
OpenHardware.io • 24 Nov 2017, 21:01 • openhardware.io 18 Dec 2018, 08:58 -
Stabile Controller
Troubleshooting • 5 Mar 2015, 14:08 • C.r.a.z.y. 8 Mar 2015, 15:34 -
FTDI/Serial or USB?
Hardware • 7 Apr 2016, 13:48 • Samuel235 9 Apr 2016, 22:01 -
💬 MysX2USB
OpenHardware.io • 20 Mar 2016, 08:04 • openhardware.io 23 Feb 2018, 10:33 -
💬 Arduino Serial Gateway for RFM69HW
OpenHardware.io • 24 Jan 2017, 12:49 • openhardware.io 8 Jun 2017, 10:06