How to wakeup while in sleep state via uart
Hi
I am using STM32H7 and i connect nrf52840 via uart connection and i tried to sleep ON & OFF using trigger button in stm32
* I sent data in stm32 via UART 1-> to start & 2-> stop
Is this is write way i am working with i cannot able to understand
I don't see where you are updating the 'data_array'. That should normally be done inside the uart_event_handle() if you are using the app uart libary.
Like this:
uart_event_handle(app_uart_evt_t * p_event) // in this fun i used this logic
{
if (p_event->evt_type == APP_UART_DATA_READY)
{
UNUSED_VARIABLE(app_uart_get(&data_array[0]));
if(data_array[0] == '1')
{
ble_advertising_start(&m_advertising, BLE_ADV_MODE_FAST);
}
else if(data_array[0] == '2')
{
sd_ble_gap_adv_stop(m_advertising.adv_handle);
}
}Hi Vidar Berg
I tried lots of time but i am not able to ON and OFF
Receive data via UART data_array[].It get's OFF but not getting ON i don't have Idea
The discussion continued here: NFR52840 advertise problem
The discussion continued here: NFR52840 advertise problem