 }
 
 static void check_network() {
-  if (millis() - g_check_net_ms > 20000) {
+  if (millis() - g_check_net_ms > 30000) {
     if (!g_mqtt_client.connected()) {
       Serial.println("mqtt connection failed, try reconnect");
       LGPS.powerOff();

}

static void init_gprs() {
  Serial.println("attaching gprs");
  while (!LGPRS.attachGPRS(g_gprs_apn, g_gprs_username, g_gprs_password)) {
    Serial.println(".");

#include <ArduinoJson.h>
#include <vmcell.h>
#include <LGPRS.h>
#include <LGPRSClient.h>
#include <LBattery.h>
#include <LGPS.h>
#include <LTask.h>
#include <MQTTClient.h>

#define JSON_BUF_SIZE 256
