diff options
Diffstat (limited to 'include/bg96.h')
| -rw-r--r-- | include/bg96.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/bg96.h b/include/bg96.h index b304479..d6715f3 100644 --- a/include/bg96.h +++ b/include/bg96.h @@ -1,6 +1,20 @@ #ifndef __INCLUDE_BG96__ #define __INCLUDE_BG96__ +struct networkData { + char *operatorName; + char *currentTech; + char *networkRegStat; + char *trkAreaCode; + char *cellID; + char *rssi; + char *ber; +}; + +int initNetworkData(struct networkData *nD); + +int freeNetworkData(struct networkData *nD); + int powerOn(char *pathToPort, char *pathToChip, int statusPin, int pwrKeyPin); int powerOff(char *pathToPort, char *pathToChip, int statusPin, int pwrKeyPin); @@ -14,4 +28,8 @@ int mqttDisc(char *pathToPort); int mqttConn(char *pathToPort, char *hostURL, int hostPort, char *username, char *password); +int mqttPub(char *pathToPort, char *topic, char *msg); + +int gatherData(struct networkData *output, char *pathToPort); + #endif |
