jfjlaros / simpleRPC

Simple RPC implementation for Arduino.
MIT License
50 stars 17 forks source link

Allow support for different board types besides AVR #9

Closed chrisflesher closed 3 years ago

chrisflesher commented 3 years ago

Pull Request Details

This is a fix for issue #8, I first attempted to keep the thin wrappers around the SoftwareSerial and HardwareSerial using #define statements as the maintainer suggested. However when compiling Arduino still wants to build the io.cpp files for SoftwareSerialIO and HardwareSerialIO. I thought about adding #define statements also to these files also but thought it might be cleaner to make HardwareSerialIO and SoftwareSerialIO inherit from StreamIO since they all use the same base class.

I think things should work the same as before but don't have access to an AVR chip to test.