Possible code error in Arduino Docs ?
i was having some issiues with the code example given to test out the Arduino UNO R4 WIFI's bluetooth capabilities on the Arsuino Doc's offical guide https://docs.arduino.cc/learn/communication/bluetooth/ , after wondering about i discoverd that it seems the UUID of the central and receiver wasnt the same, and when i fixed it, it worked fine, just would like to point out the issiue, as i took me a few hours to find it since i was convinced arduino's official code was perfect, the code is the board-to-board bluetooth comunication
3 Replies
the R4 / central scans for a specific UUID
BLE.scanForUuid("19b10000-e8f2-537e-4f6c-d104768a1214");
but the receiver is set at
BLEService ledService("19B10000-E8F2-537E-4F6C-D104768A1214"); // Bluetooth® Low Energy LED Service
// Bluetooth® Low Energy LED Switch Characteristic - custom 128-bit UUID, read and writable by central
BLEByteCharacteristic switchCharacteristic("19B10001-E8F2-537E-4F6C-D104768A1214", BLERead | BLEWrite);
however in my code its
BLEService newService("19b10000-e8f2-537e-4f6c-d104768a1214"); // same as central example
BLEByteCharacteristic switchChar("19b10001-e8f2-537e-4f6c-d104768a1214", BLERead | BLEWrite);
Dud you make the pullrequest ?

no....sorry