1mckenna / esp32_iGrill

ESP32 iGrill BLE Client
MIT License
46 stars 14 forks source link

Compilation error: conversion from 'String' to non-scalar type 'std::string' #37

Closed AndiN29681 closed 7 months ago

AndiN29681 commented 8 months ago

Hello all,

first of all I'd like to say thank you for sharing the great project with us. I followed the instructions to set everything up. Unfortunately I get a Compilation error which I was not able to fix yet.

I hope you can help me a bit with your expert knowledge.

Thanks a lot in advance Andi

/Library/Arduino15/packages/esp32/hardware/esp32/3.0.0-alpha3/libraries/BLE/src/BLERemoteCharacteristic.h:54:40: 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
AndiN29681 commented 7 months ago

I was able to solve the problem. Please use the recommended lib. versions.

Thank you