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
-
Trouble with 115200 baud on 3.3V/8MHz Arduino, like Serial Gateway. Solution: Change baudrate.
Troubleshooting • 1 Jun 2015, 20:00 • Stric 3 Jun 2015, 05:21 -
PiGatewaySerial doesn't write to virtual serial device /dev/ttyMySensorsGateway
Troubleshooting • 5 Nov 2015, 16:46 • Michele Rappazzo 5 Nov 2015, 20:43 -
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 -
Building a gateway with two transport layers
Hardware • 15 Aug 2021, 10:31 • Giovanni Chiva 15 Aug 2021, 18:02 -
RS232 communication via Termite 3.4 on Windows
Troubleshooting • 6 Nov 2018, 08:29 • A Former User 6 Nov 2018, 08:29 -
serial, Ethernet to MQTT
MyController.org • 14 Jun 2021, 09:38 • jkandasa 14 Jun 2021, 16:56