@@ -157,7 +157,7 @@ bool AsyncFsWebServer::startCaptivePortal(const char* ssid, const char* pass, co
157157void AsyncFsWebServer::handleWebSocket (AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventType type, void * arg, uint8_t * data, size_t len) {
158158 switch (type) {
159159 case WS_EVT_CONNECT:
160- client->printf (" {\" Websocket connected\" : true, \" clients\" : %" PRIu32" }" , client->id ());
160+ client->printf (" {\" Websocket connected\" : true, \" clients\" : %" PRIu32 " }" , client->id ());
161161 break ;
162162 case WS_EVT_DISCONNECT:
163163 client->printf (" {\" Websocket connected\" : false, \" clients\" : 0}" );
@@ -167,7 +167,7 @@ void AsyncFsWebServer::handleWebSocket(AsyncWebSocket * server, AsyncWebSocketCl
167167 String msg = " " ;
168168 if (info->final && info->index == 0 && info->len == len){
169169 // the whole message is in a single frame and we got all of it's data
170- Serial.printf (" ws[%s][%" PRIu32" ] %s-message[%llu]: " , server->url (), client->id (), (info->opcode == WS_TEXT)?" text" :" binary" , info->len );
170+ Serial.printf (" ws[%s][%" PRIu32 " ] %s-message[%llu]: " , server->url (), client->id (), (info->opcode == WS_TEXT)?" text" :" binary" , info->len );
171171 if (info->opcode == WS_TEXT){
172172 for (size_t i=0 ; i < info->len ; i++) {
173173 msg += (char ) data[i];
@@ -200,7 +200,7 @@ void AsyncFsWebServer::setTaskWdt(uint32_t timeout) {
200200 #else
201201 ESP_ERROR_CHECK (esp_task_wdt_init (timeout/1000 , 0 ));
202202 #endif
203- (void *)timeout
203+ (void *)timeout;
204204 #endif
205205}
206206
@@ -219,7 +219,7 @@ void AsyncFsWebServer::handleSetup(AsyncWebServerRequest *request) {
219219 }
220220
221221 // Changed array name to match SEGGER Bin2C output
222- AsyncWebServerResponse *response = request->beginResponse_P (200 , " text/html" , (uint8_t *)_acsetup_min_htm, sizeof (_acsetup_min_htm));
222+ AsyncWebServerResponse *response = request->beginResponse (200 , " text/html" , (uint8_t *)_acsetup_min_htm, sizeof (_acsetup_min_htm));
223223 response->addHeader (" Content-Encoding" , " gzip" );
224224 response->addHeader (" X-Config-File" , ESP_FS_WS_CONFIG_FILE);
225225 request->send (response);
@@ -690,7 +690,7 @@ void AsyncFsWebServer::handleFileEdit(AsyncWebServerRequest *request) {
690690 if (!request->authenticate (m_pageUser, m_pagePswd))
691691 return request->requestAuthentication ();
692692 }
693- AsyncWebServerResponse *response = request->beginResponse_P (200 , " text/html" , (uint8_t *)_acedit_min_htm, sizeof (_acedit_min_htm));
693+ AsyncWebServerResponse *response = request->beginResponse (200 , " text/html" , (uint8_t *)_acedit_min_htm, sizeof (_acedit_min_htm));
694694 response->addHeader (" Content-Encoding" , " gzip" );
695695 request->send (response);
696696}
0 commit comments