RemoteXY-Arduino-library icon indicating copy to clipboard operation
RemoteXY-Arduino-library copied to clipboard

esp32 3.0.0-a breaks RemoteXY

Open ghost opened this issue 2 years ago • 2 comments

Trying to compile a RemoteXY sketch for ESP32-H2 requires esp32 version 3.0.0-a.

Compilation fails with: c:\Users\tom\Documents\Arduino\libraries\RemoteXY\src/RemoteXYStream_BLEDevice.h: In member function 'virtual void CRemoteXYStream_BLEDevice::onWrite(BLECharacteristic*)':c:\Users\tom\Documents\Arduino\libraries\RemoteXY\src/RemoteXYStream_BLEDevice.h:110:52: error: conversion from 'String' to non scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested 110 | std::string rxValue = pCharacteristic->getValue();

From espressif's migration guide from v2.* to v3.0.0:

Changed APIs return and parameter type from std::string to Arduino style String.

I assume this is related.

The same sketch compiles and functions with esp32 version 2.0.11

ghost avatar Jan 21 '24 03:01 ghost

Thanks. We have to plan the work to support ESP32 version 3. We will check all types of connections.

RemoteXY avatar Jan 25 '24 09:01 RemoteXY