Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ch/atc

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
  }  
}

About

STM32 LL AT-Command parser

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.