Go Down

Topic: using setManufacturerData from arduinoble library but it's not advertising (Read 456 times) previous topic - next topic

zumbrun

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.

zumbrun

I will put in a possible bug report as we've tried lots of things but nothing shows up on for manufacturing data on our peripherals detector apps.  It seems like if we see local name, device name, and service id, then the advertising packet is being sent....just missing the manufacturing data.

Go Up