Library for the Adafruit FONA. This is a port of the original Arduino library available at: https://github.com/adafruit/Adafruit_FONA_Library . - Modified by Marc PLOUHINEC 27/06/2015 for use in mbed - Modified by lionel VOIRIN 05/08/2018 for use Adafruit FONA 3
Dependents: Adafruit_FONA_3G_Library_Test
Diff: Adafruit_FONA.h
- Revision:
- 5:79e4c91f2b73
- Parent:
- 4:05c32425d2da
- Child:
- 6:8fdb30dc3108
--- a/Adafruit_FONA.h Sat Aug 11 09:44:50 2018 +0000 +++ b/Adafruit_FONA.h Wed Sep 05 20:26:07 2018 +0000 @@ -94,9 +94,11 @@ }; public: - Adafruit_FONA(PinName tx, PinName rx, PinName rst); + Adafruit_FONA(PinName tx, PinName rx, PinName rst, PinName key); bool begin(int baudrate); uint8_t type(); + void powerOn(); + void powerOff(); void setEventListener(EventListener *eventListener); // Stream @@ -212,6 +214,7 @@ bool expectReply(const char* reply, uint16_t timeout = 10000); protected: + DigitalOut _keypin; DigitalOut _rstpin; uint8_t _type; @@ -285,7 +288,7 @@ class Adafruit_FONA_3G : public Adafruit_FONA { public: - Adafruit_FONA_3G(PinName tx, PinName rx, PinName rst) : Adafruit_FONA(tx, rx, rst) { + Adafruit_FONA_3G(PinName tx, PinName rx, PinName rst, PinName key) : Adafruit_FONA(tx, rx, rst, key) { _type = FONA3G_A; }