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

Need help with nRF52840 dongle light switch example

Hello everyone,

I need help with the nRF52840 dongle and the light switch example. I have one DK running the light switch client and one dongle running the light switch server. Now...when I press button 1 on the DK the LED on the dongle turns on. But instead of turning on the LED I want pin 0.13 to turn on. How would I achieve this?

Thanks!

Parents Reply Children
  • If you run the light switch example with logging with one client & one server (52840 DKs) & provision/configure the boards using the nRF Mesh app, you notice that the app_onoff_server_set_cb() function is called every time a set message is sent from the client to the server (pressing button 1 or 2 on the client board). Therefore, you can change the function call inside this function to toggle the gpio pin 0.13 instead of LED 1.

Related