hi nordic;
i need your help, i'm trying to code a control of gpio over the BLE i have an app on android with it i can establish connection and see the service and charactrestic but the problem that i have, is with event on_ble_write i want juste change the state of the pin 20 on my nrf51822 pca20006 just after receiving any kind of data but it didin't work .
to recap the idea of the code attached i have function returnei returnes a variable ii after sending some data from smartphone to nrf over ble this variable intially is at value 2 after sending the data its value will be at 0 and the pin 20 will be at low state but unfortunately this didn't work
any help from you will be appreciated