STM32 LL AT-Command parser
atcConfig.h
file.atc_init()
.atc_loop()
in infinit loop.#include "atc.h"
atc_t atc;
void atc_found(char *foundStr)
{
if (strstr(foundStr, "\r\n+CMD:") != NULL)
{
}
}
int main()
{
atc_init(&atc, "MY_ATC", USART1, atc_found);
atc_addSearch(&atc, "\r\n+CMD:");
while (1)
{
atc_loop(&atc);
}
}