src/tasks/wifi-update-signalstrength.h
/**
 * TASK: Get the current WiFi signal strength and write it to the
 * displayValues so it can be shown by the updateDisplay task
 */
Get the current WiFi signal strength and write it to the
displayValues so it can be shown by the updateDisplay task
Get the current WiFi signal strength and write it to the displayValues so it can be shown by the updateDisplay task
void updateWiFiSignalStrength(void * parameter){
  for(;;){
    if(WiFi.isConnected()){
      serial_println(F("[WIFI] Updating signal strength..."));
      gDisplayValues.wifi_strength = WiFi.RSSI();
    }
    vTaskDelay(30000 / portTICK_PERIOD_MS);
  }
}
void updateWiFiSignalStrength ( void * parameter ) { for ( ; ; ) { if ( WiFi . isConnected ( ) ) { serial_println ( F ( " " ) ) ; gDisplayValues . wifi_strength = WiFi . RSSI ( ) ; } vTaskDelay ( 30000 / portTICK_PERIOD_MS ) ; } }
TASK: Get the current WiFi signal strength and write it to the
 displayValues so it can be shown by the updateDisplay task
TASK : Get the current WiFi signal strength and write it to the displayValues so it can be shown by the updateDisplay task
// Sleep for 10 seconds