EasyManua.ls Logo

sparkfun MicroMod ESP32 - Page 20

sparkfun MicroMod ESP32
26 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.
Having a hard time seeing? Click the image for a closer look.
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.

Related product manuals