40 #define MY_GATEWAY_ESP32 
   42 #define MY_WIFI_SSID "MySSID" 
   43 #define MY_WIFI_PASSWORD "MyVerySecretPassword" 
   47 #define MY_HOSTNAME "ESP32_GW" 
   60 #define MY_GATEWAY_MAX_CLIENTS 2// Set blinking period 
   74 #include <ArduinoOTA.h> 
   80     ArduinoOTA.onStart([]() {
 
   81         Serial.println(
"Start updating");
 
   83     ArduinoOTA.onEnd([]() {
 
   84         Serial.println(
"\nEnd updating");
 
   86     ArduinoOTA.onProgress([](
unsigned int progress, 
unsigned int total) {
 
   87         Serial.printf(
"OTA Progress: %u%%\r", (progress / (total / 100)));
 
   89     ArduinoOTA.onError([](ota_error_t error) {
 
   90         Serial.printf(
"Error[%u]: ", error);
 
   91         if (error == OTA_AUTH_ERROR) {
 
   92             Serial.println(
"Auth Failed");
 
   93         } 
else if (error == OTA_BEGIN_ERROR) {
 
   94             Serial.println(
"Begin Failed");
 
   95         } 
else if (error == OTA_CONNECT_ERROR) {
 
   96             Serial.println(
"Connect Failed");
 
   97         } 
else if (error == OTA_RECEIVE_ERROR) {
 
   98             Serial.println(
"Receive Failed");
 
   99         } 
else if (error == OTA_END_ERROR) {
 
  100             Serial.println(
"End Failed");