0

nRF8001 Bluefruit board set different name
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

nRF8001 Bluefruit board set different name

by slider on Mon Sep 29, 2014 7:00 am

Hello,

I would like to change the name that nRF8001 uses to do the advertising, but i can't find any function to do it.

slider
 
Posts: 5
Joined: Mon May 13, 2013 12:55 pm

Re: nRF8001 Bluefruit board set different name

by adafruit_support_rick on Mon Sep 29, 2014 10:43 am


adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: nRF8001 Bluefruit board set different name

by slider on Mon Sep 29, 2014 10:50 am

I need to do it in the setup function in the arduino sketch.

slider
 
Posts: 5
Joined: Mon May 13, 2013 12:55 pm

Re: nRF8001 Bluefruit board set different name

by adafruit_support_rick on Mon Sep 29, 2014 11:14 am

You can't do it there. It's a firmware thing.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: nRF8001 Bluefruit board set different name

by slider on Mon Sep 29, 2014 11:41 am

The library from RedBearLab (board with the same nRF8001) has a function to do it: https://github.com/RedBearLab/nRF8001/b ... _nRF8001.h

slider
 
Posts: 5
Joined: Mon May 13, 2013 12:55 pm

Re: nRF8001 Bluefruit board set different name

by franklin97355 on Mon Sep 29, 2014 3:41 pm

Could you modify their library to do what you want?

franklin97355
 
Posts: 22148
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: nRF8001 Bluefruit board set different name

by adafruit_support_rick on Mon Sep 29, 2014 4:06 pm

Our nRF8001 engineer is looking into this.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: nRF8001 Bluefruit board set different name

by adafruit_support_rick on Tue Sep 30, 2014 1:06 pm

OK, we just pushed up a new version of the library:
Code: Select all | TOGGLE FULL SIZE
I just pushed an update that adds a new (optional) .setDeviceName function. You can set a name up to 7 characters long instead of the default "UART" (that's all the space we have in the advertising packet). Sending more than 7 characters will return without taking the changes into affect.

This needs to be called before the device is initialised, so I added it at the appropriate place in both the echoDemo and callbackDemo examples


https://github.com/adafruit/Adafruit_nRF8001

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: nRF8001 Bluefruit board set different name

by slider on Tue Sep 30, 2014 1:14 pm

Thank you Rick

slider
 
Posts: 5
Joined: Mon May 13, 2013 12:55 pm

Re: nRF8001 Bluefruit board set different name

by aschaper on Tue Sep 30, 2014 1:28 pm

Thanks Rick, this is awesome!

aschaper
 
Posts: 5
Joined: Sun Aug 17, 2014 1:47 am

Please be positive and constructive with your questions and comments.