Nimaltd Atc Save

STM32 LL AT-Command parser

Project README

at-command library


  • NONE RTOS Supported.
  • RTOS V1 Supported.
  • RTOS V2 Supported.

  • F0 tested.
  • L0 tested.
  • F1 tested.
  • L1 tested.
  • F2 tested.
  • F3 tested.
  • F4 tested.
  • L4 tested.
  • F7 tested.
  • H7 tested.

  • Enable USART (LL Library) and RX interrupt.
  • Add library to your project.
  • Configure atcConfig.h file.
  • Create a struct as global.
  • Create found callback function if you need it.
  • Call atc_init().
  • You could add always search strings now.
  • Call 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);
  }  
}
Open Source Agenda is not affiliated with "Nimaltd Atc" Project. README Source: nimaltd/atc

Open Source Agenda Badge

Open Source Agenda Rating