unsigned long lastConnectionTime = 0; // last time you connected to the server, in millisecondsconst unsigned long postingInterval = 600L * 1000L; // delay between updates, in milliseconds// the "L" is needed to use long type numbers

// if ten seconds have passed since your last connection, // then connect again and send data: if (millis() - lastConnectionTime > postingInterval) { IoTpublish(); }}

// this method makes a HTTP connection to the server:void IoTpublish() { // close any connection before send a new request. // This will free the socket on the shield client.stop(); String SENSOR_TOKEN1="7apqevfeekvlvr6q966k32roen";//temperatura String SENSOR_TOKEN2="pbdcsprl6ojo03smrve1gsi4mp";//umiditate

unsigned long lastConnectionTime = 0; // last time you connected to the server, in millisecondsconst unsigned long postingInterval = 60L * 1000L; // delay between updates, in milliseconds// the "L" is needed to use long type numbers

// if ten seconds have passed since your last connection, // then connect again and send data: if (millis() - lastConnectionTime > postingInterval) { IoTpublish(); }}

// this method makes a HTTP connection to the server:void IoTpublish() { // close any connection before send a new request. // This will free the socket on the shield client.stop(); String SENSOR_TOKEN1="7apqevfeekvlvr6q966k32roen";//temperatura String SENSOR_TOKEN2="pbdcsprl6ojo03smrve1gsi4mp";//umiditate

unsigned long lastConnectionTime = 0; // last time you connected to the server, in millisecondsconst unsigned long postingInterval = 10L * 1000L; // delay between updates, in milliseconds// the "L" is needed to use long type numbers

void loop() { // if there's incoming data from the net connection. // send it out the serial port. This is for debugging // purposes only:

if (client.available()) { char c = client.read(); Serial.write(c); }

// if ... seconds have passed since your last connection, // then connect again and send data: if (millis() - lastConnectionTime > postingInterval) { IoTpublish(); }}

// this method makes a HTTP connection to the server:void IoTpublish() { // close any connection before send a new request. // This will free the socket on the shield client.stop(); String SENSOR_TOKEN1="7apqevfeekvlvr6q966k32roen";//temperatura String SENSOR_TOKEN2="pbdcsprl6ojo03smrve1gsi4mp";//umiditate