Rock Monitoring  V 1.0
Connection3G.h
Go to the documentation of this file.
1 #ifndef CONNECTION3G_H
2 #define CONNECTION3G_H
3 #include "WaspUSB.h"
4 #include "..\libraries\_3G\Wasp3G.h"
5 #include <stdio.h>
6 #include "WaspPWR.h"
7 #include "WaspRTC.h"
8 #include <inttypes.h>
9 #include "printable.h"
10 #include "Waspmote.h"
11 #include "Sensors.h"
12 #include "../Constants/Constants.h"
13 //#include <Wasp3G.h>
14 
16 {
17 public:
18 //methods
19  Connection3G();
20  void init(); //This method initializes the operator parameters that are necessary for 3G connection
21  uint8_t sendData(Sensors::structSensors * sensors); //This method sends all the sensor information from one struct structSensors to the webserver
22  uint8_t sendData(Sensors::structSensors * data, uint8_t size); //This method sends the information of the sensors in the array to the webserver
23  uint8_t checkConnection(); //This method checks if a connection to the 3G network could be established
24 
25 private:
26 //Attributes
27  const char* simPin = "5858";
28  const char* httpStreamAddress = "rockmonitoring.netpresence.ch";
29 };
30 
31 #endif // CONNECTION3G_H
uint8_t sendData(Sensors::structSensors *sensors)
This method sends all the sensor information from the struct to the webserver.
const char * httpStreamAddress
Definition: Connection3G.h:28
uint8_t checkConnection()
This method checks if a connection to the 3G network can be established.
const char * simPin
Definition: Connection3G.h:27
void init()
This method initializes the operator parameters that are necessary for 3G connection.
Definition: Connection3G.cpp:9
Class that handles the communication over 3G.
Definition: Connection3G.h:15