Hi, I copied the source of the BLE client from the dronebot workshop and I keep getting compiler errors that classble has not a member SETmtu. When I comment it I get another weird error.
I know that there are lots of versions of libraries written by different programmers. What version did you use?
deedee
C++ is case-sensitive, so SETmtu, setMtu and setMTU are different names. With the ESP32 Arduino BLE library, the usual call is:
BLEDevice::setMTU(517);
Make sure you are using the BLE library bundled with the ESP32 Arduino core, not a separately installed library with similarly named headers. Remove or rename duplicate BLE libraries from your Arduino libraries folder, then compile one of the BLE client examples supplied with your installed ESP32 core.
For general background on ESP32 Bluetooth Low Energy, this ESP32 BLE project may also be useful. However, the compiler error is most likely caused by a library/version mismatch. Note that C++ is case-sensitive: the method is normally setMTU(), not SETmtu().
If it still fails .... please post the complete error message, ESP32 board package version and the exact line being compiled. The next error may simply result from mixing code written for the original ESP32 BLE library with NimBLE or another incompatible version.