Site icon Renzo Mischianti

Errore compilazione Web Manager

Buongiorno, sto cercando di compilare lo sketch del web manager per ESP8266 e ottengo questo errore durante la compilazione: E:\ARDUINO\LoRa\Ebyte LoRa E32\PROGETTO_ITA\LoRa_E32\examples\esp8266_e32_web_manager_gateway\esp8266_e32_web_manager_gateway.ino: In function 'void webSocketEvent(uint8_t, WStype_t, uint8_t*, size_t)': esp8266_e32_web_manager_gateway:869:138: error: cannot bind non-const lvalue reference of type 'String&' to an rvalue of type 'String' 869 | webSocket.sendTXT(num, "{\"type\":\"connection\", \"connection\": true, \"simpleMessage\": "+String(readSingleMessage?"true":"false")+"}"); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ In file included from E:\ARDUINO\LoRa\Ebyte LoRa E32\PROGETTO_ITA\LoRa_E32\examples\esp8266_e32_web_manager_gateway\esp8266_e32_web_manager_gateway.ino:24: C:\Users\User\Documents\Arduino\libraries\arduinoWebSockets-master\src/WebSocketsServer.h:60:40: note: initializing argument 2 of 'bool WebSocketsServerCore::sendTXT(uint8_t, String&)' 60 | bool sendTXT(uint8_t num, String & payload); | ~~~~~~~~~^~~~~~~ exit status 1 cannot bind non-const lvalue reference of type 'String&' to an rvalue of type 'String' a cosa può essere dovuto? perdoni ma non ho molta esperienza con Arduino Grazie, cordiali saluti
Exit mobile version