Connecting a Multi-Tech Systems Dragonfly™ to Twilio's Sync for IoT Quickstart. Blink a dev board LED.
Dependencies: MQTT MbedJSONValue mbed mtsas
Fork of DragonflyMQTT by
Code to connect a Multi-Tech® MultiConnect® Dragonfly™ to Twilio's Sync for IoT: https://www.twilio.com/docs/api/devices
Uses MQTT over TLS and subscribes to a topic where you can control an LED. See also our Quickstart using this code, here: https://www.twilio.com/docs/quickstart/sync-iot/mqtt-multi-tech-multiconnect-dragonfly-sync-iot
Diff: MTSCellularManager.hpp
- Revision:
- 1:5a896191c3c4
- Parent:
- 0:b32fa0c757d7
- Child:
- 2:d4dcf1ebaa99
--- a/MTSCellularManager.hpp Tue May 09 13:16:48 2017 +0000 +++ b/MTSCellularManager.hpp Fri May 12 11:49:58 2017 +0000 @@ -11,7 +11,17 @@ void uninit(); - mts::Cellular& getRadio() { return *radio; } + struct GPSStatus { + bool success; + int fix; + float speedVal; // mph + double longitudeVal; + double latitudeVal; + }; + + void enableGps(); + + GPSStatus gpsPollStatus(); private: // An APN is required for GSM radios.