0

Change manufacturer|Model names of a nRF52832 Feather
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Change manufacturer|Model names of a nRF52832 Feather

by Gatze on Tue Sep 28, 2021 3:09 am

I'm busy with a nRF52832 to communicate over BLE Uart with an Android Application.

In the example code of the BLE uart are the following lines:
Code: Select all | TOGGLE FULL SIZE
   // Configure and Start Device Information Service
  bledis.setManufacturer("Adafruit Industries");
  bledis.setModel("Bluefruit Feather52");
  bledis.begin();

When I change these to my own names, it still doesn't change when I tried to connect to the host. I can see the names when I scan the device's.

When looking at BLEDis.cpp there is a define:
Code: Select all | TOGGLE FULL SIZE
#ifdef USB_PRODUCT
  this->setModel(USB_PRODUCT);
#else
  this->setModel("Feather nRF52832");
#endif

Also tried then with #define USB_PRODUCT "Own_name" but this is also not working. I'm guessing it is a 'deeper' problem, I don't have a lot of experience with bluetooth. Probably just as many want to send some bytes over....;)

Gatze
 
Posts: 12
Joined: Tue Sep 28, 2021 2:59 am

Re: Change manufacturer|Model names of a nRF52832 Feather

by Gatze on Tue Sep 28, 2021 3:27 am

Already found it, using setName after the begin function.

Bluefruit.begin();
Bluefruit.setName("Gatze");

Gatze
 
Posts: 12
Joined: Tue Sep 28, 2021 2:59 am

Please be positive and constructive with your questions and comments.