You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Freematics's ArduinoOBD library uses Serial.write(const char*), but with Arduino-ESP32, it dose not complie with below error:
/Users/minyk/Documents/Arduino/libraries/OBDI2C/src/OBD.cpp: In member function 'virtual void COBD::write(const char*)':
/Users/minyk/Documents/Arduino/libraries/OBDI2C/src/OBD.cpp:112:17: error: call of overloaded 'write(const char*&)' is ambiguous
OBDUART.write(s);
So I dug the original Arduino Core code up, then found this line from HardwareSerial.h:
using Print::write; // pull in write(str) and write(buf, size) from Print
Arduino-ESP32's HardwareSerial.h does not have that part of code. Is this on purpose?
Thank you.
The text was updated successfully, but these errors were encountered:
minyk
changed the title
Missing Serial.write(const char*) in HardwareSerial.h?
Missing Serial.write(const char*) in HardwareSerial.h?
Nov 16, 2016
Hi,
Freematics's ArduinoOBD library uses
Serial.write(const char*)
, but with Arduino-ESP32, it dose not complie with below error:So I dug the original Arduino Core code up, then found this line from
HardwareSerial.h
:Arduino-ESP32's
HardwareSerial.h
does not have that part of code. Is this on purpose?Thank you.
The text was updated successfully, but these errors were encountered: