Loom 4 v4.5
Arduino library for Internet of Things Rapid Prototyping in environmental sensing
|
#include <Loom_LTE.h>
Public Member Functions | |
Loom_LTE (Manager &man, const char *apn, const char *user, const char *pass, const int powerPin=A5) | |
Loom_LTE (Manager &man) | |
void | initialize () override |
void | power_up () override |
void | power_down () override |
void | package () override |
void | loadConfigFromJSON (char *json) |
void | setBatchSD (Loom_BatchSD &batch) |
bool | connect () |
void | disconnect () |
bool | verifyConnection () |
TinyGsmClient & | getClient () |
bool | isConnected () |
void | restartModem () |
void | ipToString (IPAddress ip, char array[16]) |
![]() | |
Module (const char *modName) | |
void | setModuleName (const char *modName) |
virtual const char * | getModuleName () |
virtual void | printModuleName (const char *message) |
virtual void | initialize ()=0 |
virtual void | measure ()=0 |
virtual void | package ()=0 |
virtual void | power_up ()=0 |
virtual void | power_down ()=0 |
virtual void | display_data () |
Protected Member Functions | |
void | measure () override |
Additional Inherited Members | |
![]() | |
bool | moduleInitialized = true |
int | module_address = -1 |
Loomified Control for a 4G LTE Board
Loom_LTE::Loom_LTE | ( | Manager & | man, |
const char * | apn, | ||
const char * | user, | ||
const char * | pass, | ||
const int | powerPin = A5 |
||
) |
Construct a new LTE instance
man | Reference to the manager |
apn | Name of the LTE network |
user | Username to use |
pass | Password to use |
powerPin | Pin used to power the device |
Loom_LTE::Loom_LTE | ( | Manager & | man | ) |
Construct a new LTE instance assuming credentials will be pulled from an SD card
man | Reference to the manager |
bool Loom_LTE::connect | ( | ) |
Connect to the cellular network
void Loom_LTE::disconnect | ( | ) |
Disconnect from the cellular network
TinyGsmClient & Loom_LTE::getClient | ( | ) |
Get the client to supply to publish platforms that need to communicate using this internet framework
|
overridevirtual |
Implements Module.
|
inline |
Convert an IP address to a string
bool Loom_LTE::isConnected | ( | ) |
Checks if the modem is connected to a cellular network
void Loom_LTE::loadConfigFromJSON | ( | char * | json | ) |
Load the config to connect to the LTE network from a JSON string
json | Json file read, this is freed before returning |
|
inlineoverrideprotectedvirtual |
Implements Module.
|
overridevirtual |
Implements Module.
|
overridevirtual |
Implements Module.
|
overridevirtual |
Implements Module.
|
inline |
Turn on batch upload for the lte which means it will only initialize the module when we need to upload
batch | BatchSD module |
bool Loom_LTE::verifyConnection | ( | ) |
Attempt to connect to something remote to see if we actually have an internet connection