I want to handle at command in main.c file. How can you do it?
For example, how can you send "AT+COPS?" and received return value?
I tested simple_at program below, but it doesn't work.
https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/simple_at
Peripheral Domain Status 00 NRF_P0 Non-Secure OK 01 NRF_CLOCK Non-Secure OK 02 NRF_RTC1 Non-Secure OK 03 NRF_NVMC Non-Secure OK 04 NRF_UARTE1 Non-Secure OK 05 NRF_UARTE2 Secure SKIP 06 NRF_IPC Non-Secure OK 07 NRF_VMC Non-Secure OK 08 NRF_FPU Non-Secure OK 09 NRF_EGU1 Non-Secure OK 10 NRF_EGU2 Non-Secure OK 11 NRF_TWIM2 Non-Secure OK 12 NRF_SPIM3 Non-Secure OK 13 NRF_TIMER0 Non-Secure OK 14 NRF_TIMER1 Non-Secure OK 15 NRF_TIMER2 Non-Secure OK 16 NRF_SAADC Non-Secure OK 17 NRF_GPIOTE1 Non-Secure OK SPM: NS image at 0x8000 SPM: NS MSP at 0x20022610 SPM: NS reset vector at 0x9efd SPM: prepare to jump to Non-Secure image. Exception occurred in Secure State ***** HARD FAULT ***** Fault escalation (see below) ***** BUS FAULT ***** Precise data bus error BFAR Address: 0x50008120 ***** Hardware exception ***** Current thread ID = 0x20020130 Faulting instruction address = 0x0 Fatal fault in ISR! Spinning...
Thanks