Skip to content

Add SoftwareSerial support for RS485 transport#1510

Open
kasparsd wants to merge 3 commits intomysensors:developmentfrom
kasparsd:add/softwareserial
Open

Add SoftwareSerial support for RS485 transport#1510
kasparsd wants to merge 3 commits intomysensors:developmentfrom
kasparsd:add/softwareserial

Conversation

@kasparsd
Copy link

@kasparsd kasparsd commented Oct 29, 2021

Fixes #1300.

The Arduino SoftwareSerial library (and its forks for various hardware platforms) appears to be compatible with the API currently used by the RS485 transport. It contains the following calls:

  • .available()
  • .read()
  • .flush()
  • .begin()

@kasparsd
Copy link
Author

Would this be something valuable for the upstream project? The AltSoftSerial implementation currently doesn't support ESP devices so this would solve that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MinorChanges: SoftwareSerial for RS485

1 participant