VictronVEDirectArduino icon indicating copy to clipboard operation
VictronVEDirectArduino copied to clipboard

Convert to SoftwareSerial

Open cterwilliger opened this issue 4 years ago • 1 comments

Convert library to SoftwareSerial so ESP8266 can use native USB port for debug. Using D7/D8 for rec/xmit. Also added NULL pointer checks that were previously mentioned by others. Assuming some may want to stay with HardwareSerial, so maybe this branch can just sit here for whoever wants it. Modified .cpp, .h, and example files. Tested on ESP8266 NodeMCU 1.0 (ESP-12E).

cterwilliger avatar Apr 11 '20 05:04 cterwilliger

Gday! Thanks heaps for working on this. Would be great to merge it into the master.

Perhaps you could add some board directives:

// #define ESP
#ifdef ESP
...
#else 
...
#endif  

winginitau avatar Jun 20 '20 06:06 winginitau