h2zero / NimBLE-Arduino

A fork of the NimBLE library structured for compilation with Arduino, for use with ESP32, nRF5x.
https://h2zero.github.io/NimBLE-Arduino/
Apache License 2.0
712 stars 149 forks source link

NimBLE-Arduino 1.4.2: problem with device name? #695

Open osmany-ferrer opened 4 months ago

osmany-ferrer commented 4 months ago

Hello,

My sketch setups NimBLEDevice::init("TEST"); but only "TE" name is advertised. Any name attempt only shows its first two letters. This happened after updating NimBLE-Arduino to 1.4.2 and ArduinoEsp32 3.0.2 update was aborted. My board is ArduinoEsp32 2.0.11 Multiple nrFConnect clients see the same two-letter name.

While updating ArduinoESP32 3.0.2 i suddently read this, so i aborted.

Migration from 2.x to 3.0 BLE Changes in APIs Changed APIs return and parameter type from std::string to Arduino style String. Changed UUID data type from uint16_t to BLEUUID class. BLEScan::start and BLEScan::getResults methods return type changed from BLEScanResults to BLEScanResults*. Is NimBLE-Arduino 1.4.2 compatible to ArduinoESP32 3.0.2?

Any idea, please, this is driving me crazy, Thanks in advance, Osmany

osmany-ferrer commented 4 months ago

Solution,

I changed pAdvertising->setScanResponse(false); to pAdvertising->setScanResponse(true);