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

how to wake up from sleep mode

hi.....

i am using nrf52832 ........

i want to wake up my device from sleep mode ... i have used the command for sleep mode sd_app_evt_wait() ...... i dono  what command to give for waking up device from sleep mode 

thanks in advance

suggest me an answer

Parents Reply Children
  •  not using pin interrupt ... when my temperature goes beyond threshold it should wake up automatically 

    see the code here i didn't use sleep mode

    static void threshold_value()
    
    {
       
          m_xfer_done = false;
        uint16_t length1;
        uint16_t threshold;
     
        char str[80];
         threshold= 30;
     if (m_sample < threshold )
    
        {      
     
        length1 = sprintf(str,"%d", m_sample);
      nrf_drv_twi_rx(&m_twi, LM75B_ADDR, &m_sample, sizeof(m_sample));
         ble_nus_data_send(&m_nus,str,sizeof(m_sample), m_conn_handle);
          
      
    }
    }

Related