Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues in compilation #41

Open
vesar-github opened this issue Jan 1, 2025 · 0 comments
Open

Issues in compilation #41

vesar-github opened this issue Jan 1, 2025 · 0 comments

Comments

@vesar-github
Copy link

Hi!

I got quoted errors in compilation. I'm just a beginner in this ESP32-world, but with a little help from Google, at least this breaking change probably should be fixed in code? espressif/arduino-esp32#8724

Other errors said even less to me.

Regarding the errors related to included libraries, I tried with both latest versions of the libraries and the ones referred to in your setup guide.

In file included from c:\Users\OWNER\OneDrive\Asiakirjat\Arduino\libraries\ESP_WiFiManager\src/ESP_WiFiManager.h:38,
                 from C:\Temp\Weber\esp32_iGrill\esp32_iGrill.ino:32:
c:\Users\OWNER\OneDrive\Asiakirjat\Arduino\libraries\ESP_WiFiManager\src/ESP_WiFiManager-Impl.h: In member function 'void ESP_WiFiManager::setupConfigPortal()':
c:\Users\OWNER\OneDrive\Asiakirjat\Arduino\libraries\ESP_WiFiManager\src/ESP_WiFiManager-Impl.h:329:12: error: 'class WiFiClass' has no member named 'getAutoConnect'; did you mean 'getAutoReconnect'?
  329 |   if (WiFi.getAutoConnect() == 0)
      |            ^~~~~~~~~~~~~~
      |            getAutoReconnect
c:\Users\OWNER\OneDrive\Asiakirjat\Arduino\libraries\ESP_WiFiManager\src/ESP_WiFiManager-Impl.h:330:10: error: 'class WiFiClass' has no member named 'setAutoConnect'; did you mean 'setAutoReconnect'?
  330 |     WiFi.setAutoConnect(1);
      |          ^~~~~~~~~~~~~~
      |          setAutoReconnect
C:\Temp\Weber\esp32_iGrill\esp32_iGrill.ino: In function 'void getiGrillInfo()':
C:\Temp\Weber\esp32_iGrill\esp32_iGrill.ino:432:94: error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
  432 |     std::string fwVersion = iGrillAuthService->getCharacteristic(FIRMWARE_VERSION)->readValue();
      |                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
C:\Temp\Weber\esp32_iGrill\esp32_iGrill.ino: In function 'bool connectToServer()':
C:\Temp\Weber\esp32_iGrill\esp32_iGrill.ino:619:115: error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
  619 |         std::string encrypted_device_challenge = iGrillAuthService->getCharacteristic(DEVICE_CHALLENGE)->readValue();
      |                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
C:\Temp\Weber\esp32_iGrill\esp32_iGrill.ino:622:74: error: no matching function for call to 'BLERemoteCharacteristic::writeValue(std::string&, bool)'
  622 |         iGrillAuthService->getCharacteristic(DEVICE_RESPONSE)->writeValue(encrypted_device_challenge, true);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\OWNER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0\libraries\BLE\src/BLERemoteService.h:19,
                 from C:\Users\OWNER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0\libraries\BLE\src/BLEClient.h:22,
                 from C:\Users\OWNER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0\libraries\BLE\src/BLEDevice.h:22,
                 from C:\Temp\Weber\esp32_iGrill\esp32_iGrill.ino:33:
C:\Users\OWNER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0\libraries\BLE\src/BLERemoteCharacteristic.h:52:8: note: candidate: 'void BLERemoteCharacteristic::writeValue(uint8_t*, size_t, bool)'
   52 |   void writeValue(uint8_t *data, size_t length, bool response = false);
      |        ^~~~~~~~~~
C:\Users\OWNER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0\libraries\BLE\src/BLERemoteCharacteristic.h:52:28: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'uint8_t*' {aka 'unsigned char*'}
   52 |   void writeValue(uint8_t *data, size_t length, bool response = false);
      |                   ~~~~~~~~~^~~~
C:\Users\OWNER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0\libraries\BLE\src/BLERemoteCharacteristic.h:53:8: note: candidate: 'void BLERemoteCharacteristic::writeValue(String, bool)'
   53 |   void writeValue(String newValue, bool response = false);
      |        ^~~~~~~~~~
C:\Users\OWNER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0\libraries\BLE\src/BLERemoteCharacteristic.h:53:26: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'String'
   53 |   void writeValue(String newValue, bool response = false);
      |                   ~~~~~~~^~~~~~~~
C:\Users\OWNER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0\libraries\BLE\src/BLERemoteCharacteristic.h:54:8: note: candidate: 'void BLERemoteCharacteristic::writeValue(uint8_t, bool)'
   54 |   void writeValue(uint8_t newValue, bool response = false);
      |        ^~~~~~~~~~
C:\Users\OWNER\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0\libraries\BLE\src/BLERemoteCharacteristic.h:54:27: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'uint8_t' {aka 'unsigned char'}
   54 |   void writeValue(uint8_t newValue, bool response = false);
      |                   ~~~~~~~~^~~~~~~~

exit status 1

Compilation error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant