Question
GSM AT Command response
Hi
I am sending a AT command through USART2 -
char CGSN[] = "AT+CGSN\r\n";
HAL_UART_Transmit(&huart2,(uint8_t *)CGSN, sizeof(CGSN),100);
HAL_Delay(500);
HAL_UART_Receive_IT(&huart2,(uint8_t *)&ch,1);
I am receiving ch in callback and storing each byte in a buffer
the response stored in buffer is - \r\n9876543212345\r\n\r\nOK\r\n
how do i filter out n" 9876543212345 "and "OK" and store in separately array
Thanks & Regards
