MySensor constructor should accept serial device or stream object


  • Hero Member

    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.


  • Contest Winner

    what about a MEGA any any of the 3 other UARTs?

    I see them for under US$ 12.00 on eBay...


  • Hero Member

    You are right, that is a possible solution for my problem. I think changing software should be favoured over changing hardware.


Log in to reply
 

Suggested Topics

22
Online

11.2k
Users

11.1k
Topics

112.5k
Posts