Skip to content

Commit

Permalink
Added nbpts wifi send when slp is pressed before infinite sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGuillerand committed Oct 18, 2021
1 parent 0fc5f4d commit bb96ef7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MainESP32v4_DIO/MainESP32v4_DIO.ino
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ void loop() {
esp_sleep_enable_timer_wakeup((TIME_TO_SLEEP * 1e3 - t_total) * uS_TO_S_FACTOR / 1e3);
}
else {
Serial.println("Slp_switch pressed, infinite sleep");
Serial.println("Slp_switch pressed, send nbpts and infinite sleep");
ConnectWIFI((uint8_t*) &rtcData.nbpts, 1*sizeof(uint16_t));
Serial.println();
}
//Start the deep sleep
Expand Down

0 comments on commit bb96ef7

Please sign in to comment.