 char *apn = "zap.vivo.com.br";
 char *usr = "vivo";
 char *psw = "vivo";
+
+/* Current State */
+int curState = 0;
 
 SIM908Client client(0,1,5,4,3);
 

void loop()
{
  mqttClient.loop();
}

//method for handling messages recieved from the web mosquitto
void messageReceived(String topic, String payload, char * bytes, unsigned int length) {
Serial.print("incomming: ");
Serial.print(topic);
Serial.print(" - ");
Serial.print(payload);
Serial.println();
}

#include "MQTTClient.h"
#include "SIM908Client.h"

#define ALARM_OFF 0
#define ALARM_ON 1
#define ALARM_BUZZ 2

#define GPS_TIME_DFT 30000

int gpsLoopTime = 900000; //15 minutes
int alarmLoopTime = 30000; //30 seconds

//Host Name  : test.mosquitto.org
char *server = "85.119.83.194";
int port = 8080;
