Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

I just want to blink an LED via BLE on nrf52832
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

I just want to blink an LED via BLE on nrf52832

by ametedinov on Thu Mar 26, 2020 12:59 am

I want to create peripheral with a custom service with a custom characteristic, whose value would control the state of the built-in LED.
I could not find any example on how to check the value of a characteristic once a central device has changed it.
Is there a callback-based approach where I can execute a function only when the value has been changed?
I do NOT want to use the BLEUART!

Can someone please post an example of how to do this hello world sketch?

My goal is to then be able to control the state of the LED using Web-Bluetooth.

ametedinov
 
Posts: 12
Joined: Thu May 25, 2017 2:07 am

Re: I just want to blink an LED via BLE on nrf52832

by hathach on Fri Mar 27, 2020 12:34 pm

use nRF Blinky App (Android/iOS) to control LED and button with this sketch
https://github.com/adafruit/Adafruit_nR ... nrf_blinky

hathach
 
Posts: 1108
Joined: Tue Apr 23, 2013 1:02 am

Please be positive and constructive with your questions and comments.