 volatile bool led_status, alterado = false;
 volatile int fb_delay = 1000, prev_delay = 1000;
 
+StaticJsonBuffer<50> tsoBuffer;
+JsonObject& timeStampObject = tsoBuffer.createObject();
+
+StaticJsonBuffer<250> nodemcuBuffer;
+JsonObject& nodemcuObject = nodemcuBuffer.createObject();
+
 void setup() {
 	Serial.begin(115200);
   wifinder.setLed(LED_PIN);

	Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
  Firebase.setString("localIp", wifinder.getLocalIp());
	attachInterrupt(BTN_PIN, readBtn, FALLING);
}

void loop() {

	readDelayFirebase();

	delay(fb_delay);
}

// Inicializa conteudo statico dos jsons
void initJSONs(){
  timeStampObject[".sv"] = "timestamp";
  nodemcuObject["photoURL"] = "https://cknodemcu.files.wordpress.com/2015/10/nodemcu2.png?w=150";
  nodemcuObject["displayName"] = "NodeMCU";
  nodemcuObject["date"] = timeStampObject;
}

// Lê do firebase: LED
