I set service uuid, local name, device name, and manufacturer data
When detecting my arduino with LightBlue or any of those ble peripheral detectors apps, i can see the service uuid, local name, device name, but not the manufacturers data.
Here is the relevant code:
BLEService HGService("2220"); // create service
void setup() {
Serial.begin(9600);
while (!Serial);
//begin initialization
if (!BLE.begin()) {
Serial.println("starting BLE failed!");
while (1);
}
Serial.println("Bluetooth device active, waiting for connections...");
// connect to HG iphone apps
BLE.setLocalName("ICBHR");
BLE.setDeviceName("ICBHR2");
//
uint8_t data[5] = {0x31, 0x37, 0x30, 0x33, 0x30};
BLE.setManufacturerData(data, sizeof(data));
BLE.setAdvertisedService(HGService);
BLE.addService(HGService);
BLE.advertise();
}
Not sure why I can see some of what I set and not the manufacturer data.