pCharacteristic->setCallbacks(new MyCallbacks());
pCharacteristic->setValue("Hello World");
pService->start();
BLEAdvertising *pAdvertising = pServer->getAdvertising();
pAdvertising->start();
}
void loop() {
// put your main code here, to run repeatedly:
delay(2000);
}
Once you have uploaded your code, open the serial monitor set at 115200 baud so you can see the message
that we will write.
Then open your BLE Scanner app on your phone. You will see multiple options; scroll through these and connect
to MyESP32.
Now we need to drill down to the communication capability we want. Once you are connected to MyESP32, you
will be taken to the following page. Select CUSTOM SERVICE.
Having a hard time seeing? Click the image for a closer look.
Need help?
Do you have a question about the MicroMod ESP32 and is the answer not in the manual?
Questions and answers