Hi,
Once I enter into BLE mode I am not able to read any gpios(nrf_gpio_pin_read) also I am not able to set any gpios (nrf_gpio_pin_set).
Below is my example
uint8_t data;
uint8_t len;
uint32_t status = nrf_gpio_pin_read(PIN_NO); //Error here
if(status)
data[0] = 'O';
else
data[0] = 'F';
len = 1;
err_code = ble_nus_send_string(&m_nus, data, len);
if(err_code != NRF_ERROR_INVALID_STATE)
{
APP_ERROR_CHECK(err_code);
}
same error on below
void nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length)
{
if(p_data[0] == 'O')
nrf_gpio_pin_set(LED_PIN); //error
else
nrf_gpio_pin_clear(LED_PIN); //Error
}
Please do need full
Thanks