Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit fbf2e1a

Browse files
authored
Fix compiler error for ESP32-C3
Compile error on ESP32-C3 for even simplest example [simple_server](https://github.com/me-no-dev/ESPAsyncWebServer/tree/master/examples/simple_server) ``` /home/kh/Arduino/libraries/ESPAsyncWebServer-master/src/AsyncWebSocket.cpp: In member function 'IPAddress AsyncWebSocketClient::remoteIP()': /home/kh/Arduino/libraries/ESPAsyncWebServer-master/src/AsyncWebSocket.cpp:843:28: error: call of overloaded 'IPAddress(unsigned int)' is ambiguous return IPAddress(0U); ^ ```
1 parent 2f78426 commit fbf2e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AsyncWebSocket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ void AsyncWebSocketClient::binary(AsyncWebSocketMessageBuffer * buffer)
840840

841841
IPAddress AsyncWebSocketClient::remoteIP() {
842842
if(!_client) {
843-
return IPAddress(0U);
843+
return IPAddress((uint32_t) 0);
844844
}
845845
return _client->remoteIP();
846846
}

0 commit comments

Comments
 (0)