Code Monkey home page Code Monkey logo

atc's Introduction

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

atc's People

Contributors

nimaltd avatar ch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.