Rex Robot Seti RoverBot

Merhabalar. Geçen yıl öğrencilerim için Rex Robot seti almış ve vibot sonicbot, roverbot gibi robot tipleri üzerinde sorunsuz çalışmıştık. Fakat geçen yıl düzgün çalışan kodları bu sene denediğimizde dable kütüphanesi ile ilgili hata alıyoruz. Sadece kütüphane tanımladığımda bile şu şekilde bir hata silsilesi çıkıyor. Araştırdım ama bu kütüphane ile ilgili bir değişiklik falan göremedim. Neyi gözden kaçırıyor olabilirim

Hata:

/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/esp32BLEUtilities.cpp: In member function 'virtual void BleCallbacks::onWrite(BLECharacteristic*)':
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/esp32BLEUtilities.cpp:29:57: error: conversion from 'String' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   29 |       std::string rx_Value = bleCharacteristic->getValue();
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/esp32BLEUtilities.cpp: In member function 'void Esp32ble::begin(std::string)':
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/esp32BLEUtilities.cpp:55:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'String'
   55 |   BLEDevice::init(a);
      |                   ^
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
In file included from /Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/esp32BLEUtilities.h:5,
                 from /Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/esp32BLEUtilities.cpp:2:
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLEDevice.h:41:27: note:   initializing argument 1 of 'static void BLEDevice::init(String)'
   41 |   static void init(String deviceName);                                                            // Initialize the local BLE environment.
      |                    ~~~~~~~^~~~~~~~~~
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/esp32BLEUtilities.cpp: In member function 'void Esp32ble::write(std::string)':
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/esp32BLEUtilities.cpp:111:38: error: no matching function for call to 'BLECharacteristic::setValue(std::string&)'
  111 |         bleTxCharacteristic->setValue(x);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLEServer.h:23,
                 from /Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLEDevice.h:21:
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:77:8: note: candidate: 'void BLECharacteristic::setValue(uint8_t*, size_t)'
   77 |   void setValue(uint8_t *data, size_t size);
      |        ^~~~~~~~
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:77:8: note:   candidate expects 2 arguments, 1 provided
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:78:8: note: candidate: 'void BLECharacteristic::setValue(String)'
   78 |   void setValue(String value);
      |        ^~~~~~~~
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:78:24: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'String'
   78 |   void setValue(String value);
      |                 ~~~~~~~^~~~~
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:79:8: note: candidate: 'void BLECharacteristic::setValue(uint16_t&)'
   79 |   void setValue(uint16_t &data16);
      |        ^~~~~~~~
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:79:27: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'uint16_t&' {aka 'short unsigned int&'}
   79 |   void setValue(uint16_t &data16);
      |                 ~~~~~~~~~~^~~~~~
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:80:8: note: candidate: 'void BLECharacteristic::setValue(uint32_t&)'
   80 |   void setValue(uint32_t &data32);
      |        ^~~~~~~~
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:80:27: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'uint32_t&' {aka 'long unsigned int&'}
   80 |   void setValue(uint32_t &data32);
      |                 ~~~~~~~~~~^~~~~~
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:81:8: note: candidate: 'void BLECharacteristic::setValue(int&)'
   81 |   void setValue(int &data32);
      |        ^~~~~~~~
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:81:22: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int&'
   81 |   void setValue(int &data32);
      |                 ~~~~~^~~~~~
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:82:8: note: candidate: 'void BLECharacteristic::setValue(float&)'
   82 |   void setValue(float &data32);
      |        ^~~~~~~~
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:82:24: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'float&'
   82 |   void setValue(float &data32);
      |                 ~~~~~~~^~~~~~
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:83:8: note: candidate: 'void BLECharacteristic::setValue(double&)'
   83 |   void setValue(double &data64);
      |        ^~~~~~~~
/Users/okanozkan/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/BLE/src/BLECharacteristic.h:83:25: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'double&'
   83 |   void setValue(double &data64);
      |                 ~~~~~~~~^~~~~~
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/LedControlModule.cpp: In member function 'virtual void LedControlModule::processData()':
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/LedControlModule.cpp:36:33: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
   36 |                                 ledcAttachPin(pin,currentChannel);
      |                                 ^~~~~~~~~~~~~
      |                                 ledcAttach
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/LedControlModule.cpp:37:33: error: 'ledcSetup' was not declared in this scope
   37 |                                 ledcSetup(currentChannel,100,8);
      |                                 ^~~~~~~~~
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/motorControls.cpp: In member function 'void motorControls::runMotor1(uint8_t, uint8_t, uint8_t)':
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/motorControls.cpp:100:17: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
  100 |                 ledcAttachPin(pwm,0);
      |                 ^~~~~~~~~~~~~
      |                 ledcAttach
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/motorControls.cpp:101:17: error: 'ledcSetup' was not declared in this scope
  101 |                 ledcSetup(0,100,8);
      |                 ^~~~~~~~~
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/motorControls.cpp: In member function 'void motorControls::runMotor2(uint8_t, uint8_t, uint8_t)':
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/motorControls.cpp:130:17: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
  130 |                 ledcAttachPin(pwm,1);
      |                 ^~~~~~~~~~~~~
      |                 ledcAttach
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/motorControls.cpp:131:17: error: 'ledcSetup' was not declared in this scope
  131 |                 ledcSetup(1,100,8);
      |                 ^~~~~~~~~
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/motorControls.cpp: In member function 'void motorControls::runServo1(uint8_t)':
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/motorControls.cpp:171:17: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
  171 |                 ledcAttachPin(pin,3);
      |                 ^~~~~~~~~~~~~
      |                 ledcAttach
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/motorControls.cpp:172:17: error: 'ledcSetup' was not declared in this scope
  172 |                 ledcSetup(3,50,16);
      |                 ^~~~~~~~~
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/motorControls.cpp: In member function 'void motorControls::runServo2(uint8_t)':
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/motorControls.cpp:182:17: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
  182 |                 ledcAttachPin(pin,4);
      |                 ^~~~~~~~~~~~~
      |                 ledcAttach
/Users/okanozkan/Documents/Arduino/libraries/DabbleESP32/src/motorControls.cpp:183:17: error: 'ledcSetup' was not declared in this scope
  183 |                 ledcSetup(4,50,16);
      |                 ^~~~~~~~~

exit status 1

Compilation error: exit status 1

acaba screenshot seklinde atabilir misiniz? Arduino IDE den

İyi günler,
Eskiden düzgünce çalışıp daha sonrasından saçma hatalar veren kütüphaneli kodların hatalarını çözebilmek için genellikle kütüphanenin eski versiyonlarını internetten bulup onları yükleriz. Çünkü bazen yeni versiyonlarda bazı özellikler çıkarılmış ya da geliştirilip daha farklı komutlarla adlandırılmış oluyor. Geri dönüşlerinizi bekliyoruz :slight_smile: