Allows SMS to be sent to query Alexa. Also allows HTTP requests to be sent to Alexa via an ESP8266-hosted web server.
Adafruit_FONA::EventListener Class Reference
Listener for FONA events. More...
#include <Adafruit_FONA.h>
Inherited by FonaEventListener.
Public Member Functions | |
| virtual void | onRing ()=0 |
| Method called when somebody call the FONA. | |
| virtual void | onNoCarrier ()=0 |
| Method called when the calling person stop his call. | |
Detailed Description
Listener for FONA events.
Inherit this class to customize.
#define FONA_RST p12 #define FONA_TX p13 #define FONA_RX p14 #define FONA_RI p11 Adafruit_FONA my_fona(FONA_TX, FONA_RX, FONA_RST, FONA_RI); DigitalOut led1(LED1); class FonaEventListener : public Adafruit_FONA::EventListener { virtual void onRing() { led1 = 1; } virtual void onNoCarrier() { led1 = 0; } }; FonaEventListener fonaEventListener; my_fona.setEventListener(&fonaEventListener);
Definition at line 84 of file Adafruit_FONA.h.
Member Function Documentation
| virtual void onNoCarrier | ( | ) | [pure virtual] |
Method called when the calling person stop his call.
| virtual void onRing | ( | ) | [pure virtual] |
Method called when somebody call the FONA.
Generated on Mon Jul 25 2022 10:52:55 by
1.7.2