Skip to content

Arduino serial-bluetooth.h with ESP32 lib 3.0.4 error #73

@vposelt

Description

@vposelt

After switching to ESP32 3.x libs from 2.x I obtained error.
"From Arduino 2.3.2 with ESP32 libs 3.0.4 when compiling 7.0.7.20 with serial-bluetooth.h:
D:\Arduino_Forth_learning\7.0.7.20 modif\ESP32forth\ESP32forth.ino: In function 'cell_t* forth_run(cell_t*)':
D:\Arduino_Forth_learning\7.0.7.20 modif\ESP32forth\serial-bluetooth.h:38:64: error: 'class BluetoothSerial' has no member named 'setPin'
38 | XV(bluetooth, "SerialBT.setPin", SERIALBT_SET_PIN, n0 = bt0->setPin(c1); NIP)
| ^~~~~~
On line 38 of serial-bluetooth.h:
XV(bluetooth, "SerialBT.setPin", SERIALBT_SET_PIN, n0 = bt0->setPin(c1); NIP) \

In BluetoothSerial.h:
#ifdef CONFIG_BT_SSP_ENABLED
void enableSSP();
void enableSSP(bool inputCapability, bool outputCapability);
void disableSSP();
#else
bool setPin(const char *pin, uint8_t pin_code_len);
#endif

From espressif documentation:

Pairing options

There are two easy options and one difficult.
The easy options can be used as usual. These offer pairing with and without Secure Simple Pairing (SSP).
The difficult option offers legacy pairing (using fixed PIN) however this must be compiled with Arduino as an IDF component with disabled sdkconfig option CONFIG_BT_SSP_ENABLED. "

I think it has to do with this CONFIG_BT_SSP_ENABLED, but I am beginner in C.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions