I have two problems
I used the online paradigm when I was practicing BLE
Sample 1
Arduino/Genuino 101 CurieBLE LED
The following error occurs during compilation
Exit status 1
'BLECentralHelper' was not declared in this scope
I changed to use Sample 2
Arduino/Genuino 101 CurieBLE Battery Monitor
The following error occurs during compilation
exit status 1
variable or field 'updateIntervalParams' declared void
May I have missed any settings?
I have solved the last problem
But there are two places do not understand
1.
BLEService ledService("19B10000-E8F2-537E-4F6C-D104768A1214"); // BLE LED Service
how to get "19B10000-E8F2-537E-4F6C-D104768A1214"
-
BLEUnsignedIntCharacteristic DataStatus( "19B10011-E8F2-537E-4F6C-D104768A1214", BLERead | BLEWrite);
BLEUnsignedIntCharacteristic DataStatus2("19B10012-E8F2-537E-4F6C-D104768A1214", BLERead | BLEWrite);
int incom = 0;
int last_incom = 0;
void setup() {
Serial.begin(9600);
CuireblePeripheral.setLocalName("CuireBLE");
CuireblePeripheral.setAdvertisedServiceUuid(CuireBLE.uuid());
CuireblePeripheral.addAttribute(CuireBLE);
CuireblePeripheral.addAttribute(DataStatus);
CuireblePeripheral.addAttribute(DataStatus2);
I set up two BLEUnsignedIntCharacteristic
19B10011
19B10012
Why do I only see in the app
19B10011-E8F2-537E-4F6C-D104768A1214