0% found this document useful (0 votes)
35 views1 page

Ble

Uploaded by

einas mohammed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

Ble

Uploaded by

einas mohammed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

#include <ArduinoBLE.

h>

const char* deviceServiceUuid = "19b10000-e8f2-537e-4f6c-d104768a1214";


const char* deviceServiceCharacteristicUuid = "19b10001-e8f2-537e-4f6c-
d104768a1214";

BLEService medService(deviceServiceUuid);
BLEByteCharacteristic medName(deviceServiceCharacteristicUuid, BLERead | BLEWrite);

void setup() {
[Link](9600);

if (![Link]()) {
[Link]("starting Bluetooth Low Energy module failed!");
while (1);
}

[Link]("Remi Phone App");


[Link]("Remi Phone App");
[Link](medService);
[Link](medService);
[Link](1);
[Link]();

[Link]("Remi Phone App Bluetooth Initialized");


[Link](" ");
}

void loop() {
BLEDevice remiWatch = [Link]();

if (remiWatch) {
[Link]("* Connected to Remi Smartwatch!");
[Link]("* Device MAC Address: ");
[Link]([Link]());
[Link](" ");

while ([Link]()) {
[Link](0);
delay(1000);
[Link](1);
delay(1000);
}
}
}

You might also like