void loop() { int response = m2xClient.readLocation(deviceId, on_location_found, NULL); Serial.print("M2x client response code: "); Serial.println(response); if (response == -1) while(1) ; delay(5000); }
void loop() { int response = m2xClient.updateLocation(deviceId, name, latitude, longitude, elevation); Serial.print("M2x client response code: "); Serial.println(response); if (response == -1) while(1) ; delay(5000); }
void loop() { int response = m2xClient.postDeviceUpdates(deviceId, 2, streamNames, counts, ats, values); Serial.print("M2x client response code: "); Serial.println(response); if (response == -1) while(1) ; delay(5000); }
int main() { eth.init(); eth.connect(); printf("IP Address: %s\n", eth.getIPAddress()); while (true) { int response = m2xClient.postDeviceUpdates(deviceId, 2, streamNames, counts, ats, values); printf("Response code: %d\n", response); if (response == -1) while (true) ; delay(5000); } }