This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

change device name on button press

Hi.

I havent found answer for - in my opinion - common question - how to temporarily change name of ble device on button press. As long as button isnt pressed - advertise NOBUTTON name and if i press it - advertise BUTTON name, or any other.

i am complete noob in nrf51822 programming, intermediate in arduino so any advice would be more than appreciated. I succesfully programmed nrf52-DK to led control via ble - so i use common mbed tutorial files. If i understand correctly i should:

  • connect nrf51822 to 52DK (how? can you provide correct blueprints?)
  • mix button program with normal ble advertising. (do you have any button managment source files?)

Can you - please - provide any source files, tutorials or information that might help me to achieve my goal?

I have: multiple nrf51822 boards nrf52 dk motherboard mbed account and succesfully mbed compiled programs to motherboard.

Regards, Kalreg.

Parents
  • Thanks for suggestions. I've read tutorials however they are quite cloudy for noob. I use mbed and not sure if i have 51DK or 52DK - they both look the same to me, and no name is on the board - it has n51422 chip onboard. I want to programm nrf51822 via DK board to manage buttons through gpio buttons on nrf 51822 to advertise different device name if i press button. Is that even possible?

Reply
  • Thanks for suggestions. I've read tutorials however they are quite cloudy for noob. I use mbed and not sure if i have 51DK or 52DK - they both look the same to me, and no name is on the board - it has n51422 chip onboard. I want to programm nrf51822 via DK board to manage buttons through gpio buttons on nrf 51822 to advertise different device name if i press button. Is that even possible?

Children
No Data
Related