Guest User

Untitled

a guest
Nov 21st, 2020
28
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void loop() {
  2. if ((millis() - lastTime) > timerDelay) {
  3. // Send Events to the client with the Sensor Readings Every 3 seconds
  4. events.send("ping",NULL,millis());
  5. events.send(getSensorReadings().c_str(),"new_readings" ,millis()); lastTime = millis();
  6. }
RAW Paste Data