Skip to content

TD-FL/ReactiveAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReactiveAT

PlatformIO Registry GitHub issues License

Reactive Non Blocking GSM Modem Library for Arduino Framework.

Suported Modems

  • SIM800 series
  • SIM900 series

More coming soon...

Features

  • Send and Receive SMS
  • Receive phone calls
  • Send Raw AT commands

Example

#include <Arduino.h>
#include <ReactiveAT.h>

// Init the library on hardware serial 2
// You can use any hardware or software serial
ReactiveAT reactiveAT(&Serial2);

void onCall(String number) // On call callback
{
    Serial.printf("Call from [%s]\n", number.c_str());
}

void onSms(String number, String content) // On SMS callback
{
    Serial.printf("SMS from [%s]: %s\n", number.c_str(), content.c_str());
}

void setup()
{
    Serial.begin(115200);
    Serial2.begin(9600);
    sleep(1);
    Serial.println("Incomming call and sms demo");

    while (!reactiveAT.moduleAvailable())
    {
        Serial.println("Waiting for modem");
        sleep(1);
    }

    reactiveAT.registerOnCall(onCall);
    reactiveAT.registerOnSms(onSms);
}

void loop()
{
    reactiveAT.poll();
}

About

Reactive Non Blocking GSM Modem Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages