I am using esp32s module, I use DOIT ESP32 DEVKIT V1 on Arduino ide to compile but while compiling openmqttgateway main.ino file it gives Error compiling for board DOIT ESP32 DEVKIT V1 error message
error massage:
In file included from /home/user/Downloads/OpenMQTTGateway-development/main/main.ino:125:0:
/home/user/Arduino/libraries/WhareHauoraWiFiManager/WiFiManager.h:16:25: fatal error: ESP8266WiFi.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
I also use platformio and it also uploads the sketch without any error but anything else happens .after using platformio the esp32 ender into a reboot loop error
Fatal error: canât create .pio/build/esp32dev-ble/libc0e/FastLED_ID126/colorutils.cpp.o: No such file or dire
ctory
*** [.pio/build/esp32dev-ble/libc0e/FastLED_ID126/colorutils.cpp.o] Error 1
I think in platformio the problem with the board or esptool because I use a simple wifi sketch to check .after uploading the sketch the esp32 enters into a boot loop.
but in Arduino IDE that simple wifi sketch and other sketch work without any problem
in case of openmqttgateway Bluetooth sketch I got an error in the ZgatewatBT.ino file such as âclass BLEAdvertisedDeviceâ has no member named âgetServiceDataCountâ
/home/a/Downloads/OMG/main/ZgatewayBT.ino: In member function âvirtual void MyAdvertisedDeviceCallbacks::onResult(BLEAdvertisedDevice)â:
ZgatewayBT:298:55: error: âclass BLEAdvertisedDeviceâ has no member named âgetServiceDataCountâ
int serviceDataCount = advertisedDevice.getServiceDataCount();
^
ZgatewayBT:301:76: error: no matching function for call to âBLEAdvertisedDevice::getServiceData(int&)â
std::string serviceData = advertisedDevice.getServiceData(j);
^
In file included from /home/a/Arduino/libraries/ESP32_BLE_Arduino-1.0.1/src/BLEClient.h:22:0,
from /home/a/Arduino/libraries/ESP32_BLE_Arduino-1.0.1/src/BLEDevice.h:19,
from /home/a/Downloads/OMG/main/ZgatewayBT.ino:261:
/home/a/Arduino/libraries/ESP32_BLE_Arduino-1.0.1/src/BLEAdvertisedDevice.h:38:14: note: candidate: std::__cxx11::string BLEAdvertisedDevice::getServiceData()
std::string getServiceData();
^
/home/a/Arduino/libraries/ESP32_BLE_Arduino-1.0.1/src/BLEAdvertisedDevice.h:38:14: note: candidate expects 0 arguments, 1 provided
ZgatewayBT:317:95: error: no matching function for call to âBLEAdvertisedDevice::getServiceDataUUID(int&)â
BLEdata.set(âservicedatauuidâ, (char *)advertisedDevice.getServiceDataUUID(j).toString().c_str());
^
In file included from /home/a/Arduino/libraries/ESP32_BLE_Arduino-1.0.1/src/BLEClient.h:22:0,
from /home/a/Arduino/libraries/ESP32_BLE_Arduino-1.0.1/src/BLEDevice.h:19,
from /home/a/Downloads/OMG/main/ZgatewayBT.ino:261:
/home/a/Arduino/libraries/ESP32_BLE_Arduino-1.0.1/src/BLEAdvertisedDevice.h:39:14: note: candidate: BLEUUID BLEAdvertisedDevice::getServiceDataUUID()
BLEUUID getServiceDataUUID();
^
/home/a/Arduino/libraries/ESP32_BLE_Arduino-1.0.1/src/BLEAdvertisedDevice.h:39:14: note: candidate expects 0 arguments, 1 provided
exit status 1
âclass BLEAdvertisedDeviceâ has no member named âgetServiceDataCountâ
This report would have more information with
âShow verbose output during compilationâ
option enabled in File -> Preferences.