Can't connect a BLE Client to a BLE Server when changing server name
Posted: Thu May 31, 2018 12:37 pm
Hi,
I have some issues trying to connect a ESP32 Client to another ESP32 Server using BLE C++, with SampleClient and SampleServer :
With basic programs, when i run the application on both ESP32, it works well, and the Client can connect to the Server, and then, the server characteristic is written. For now, everything is normal.
The server is initialized with the following code :
However, when i want to change my server name ( ESP322 in my example ) with :
When i run the application, the client can't find the server anymore. It detect the server, but the UUID is not recognize, consequently, the client cannot be initialized. Do you know where the problem is from ?
Thank you.
I have some issues trying to connect a ESP32 Client to another ESP32 Server using BLE C++, with SampleClient and SampleServer :
With basic programs, when i run the application on both ESP32, it works well, and the Client can connect to the Server, and then, the server characteristic is written. For now, everything is normal.
The server is initialized with the following code :
Code: Select all
BLEDevice::init("ESP32")
BLEServer* pServer = BLEDevice::createServer();
...
However, when i want to change my server name ( ESP322 in my example ) with :
Code: Select all
BLEDevice::init("New name")
Thank you.