ESP32 UDP read data

Hi, I'm an old programmer from the 80's Fortran / Cobol been playing around with Nano’s and uno’s and made a few project
I am trying to change my project from using 2 Nano's and RF24's to using 2 ESP32's for the communication, but for 3 weeks now I am struggling to get the data returned from the example UDP sketch into a variable.
I’m sending the word "Heartbeat" every 60 seconds from a PIR connected to an esp32, and the word “Intruder” on detection of movement (using the esp32 UDP client example modified).

My receiving esp32
I’ve modified the UDP server example,
It does return the 2 words as expected and display’s them on the serial monitor.
This line works are expected
Serial.write(packet.data(), packet.length()); // this displays the value!

I now want to check for the word "Intruder" and activate an alarm.
or the word "Heartbeat" and flash an LED
But every way I try to get the result returned into a variable fails.
And I dont understand a lot of the internet explanations of the errors I am receiving..

received == (packet.data(), packet.length()); // this fails
if ((packet.data()) == "Heartbeat") { // it doesn’t like this either
how do I get the packet.data() into a variable please?


#include <analogWrite.h>
#include "WiFi.h"
#include "AsyncUDP.h"
#include <ESP32Tone.h>

const char * ssid = "Paul2";
const char * password = "abcdeabcde";
String header;
const int buzzer = 4;
const int GarR = 2;
const int GarG = 5;
char received[50] = "";
char test[100];

AsyncUDP udp;
IPAddress local_IP(192, 168, 0, 32);
IPAddress gateway(192, 168, 0, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress primaryDNS(8, 8, 8, 8); //optional
IPAddress secondaryDNS(8, 8, 4, 4); //optional

void setup()
{
pinMode(buzzer, OUTPUT);
pinMode(GarR, OUTPUT);
pinMode(GarG, OUTPUT);

Serial.begin(9600);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
if (!WiFi.config(local_IP, gateway, subnet, primaryDNS, secondaryDNS)) {
Serial.println("STA Failed to configure");

}

    Serial.println(received);

if (WiFi.waitForConnectResult() != WL_CONNECTED) {
Serial.println("WiFi Failed");
while(1) {
delay(1000);
}
}
if(udp.listen(1234)) {
Serial.print("UDP Listening on IP: ");
Serial.println(WiFi.localIP());
udp.onPacket((AsyncUDPPacket packet) {
Serial.print("UDP Packet Type: ");
Serial.print(packet.isBroadcast()?"Broadcast":packet.isMulticast()?"Multicast":"Unicast");
Serial.print(", From: ");
Serial.print(packet.remoteIP());
Serial.print(":");
Serial.print(packet.remotePort());
Serial.print(", To: ");
Serial.print(packet.localIP());
Serial.print(":");
Serial.print(packet.localPort());
Serial.print(", Length: ");
Serial.print(packet.length());
Serial.print(", Data: ");
Serial.write(packet.data(), packet.length());
// received == (packet.data()); doesnt like this laks cast ? i dont understand the explanation
// received == (packet.data(), packet.length()); forbids compariton between pointer and intiger mmmm
});
}
}

void loop()
{
//received == ((packet.data()); packet not declared in this scope
// if ((packet.data()) == "Heartbeat") packet not declared in this scope
// Serial.println("Heartbeat returned");
// }

    Serial.println("in loop");
    //Serial.println(test);
delay(1000);

}

received = packet.data();

Oh, could you edit your post and enclose your code in code tags. Please?

1 Like

Sorry I'm new on here , cannot find an edit option, just read how to ad tags, so let me try again.
will this work !

#include <analogWrite.h>
#include "WiFi.h"
#include "AsyncUDP.h"
#include <ESP32Tone.h>


const char * ssid = "Paul2";
const char * password = "abcdeabcde";
String header;
const int buzzer = 4;
const int GarR = 2;
const int GarG = 5;
char received[50] = "";
char test[100];

AsyncUDP udp;
IPAddress local_IP(192, 168, 0, 32);
IPAddress gateway(192, 168, 0, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress primaryDNS(8, 8, 8, 8);   //optional
IPAddress secondaryDNS(8, 8, 4, 4); //optional
 
void setup()
{
    pinMode(buzzer, OUTPUT);
    pinMode(GarR, OUTPUT);
    pinMode(GarG, OUTPUT);

    Serial.begin(9600);
    WiFi.mode(WIFI_STA);
    WiFi.begin(ssid, password);
    if (!WiFi.config(local_IP, gateway, subnet, primaryDNS, secondaryDNS)) {
    Serial.println("STA Failed to configure");
    
  }

        Serial.println(received);
if (WiFi.waitForConnectResult() != WL_CONNECTED) {
        Serial.println("WiFi Failed");
        while(1) {
            delay(1000);
        }
    }
    if(udp.listen(1234)) {
        Serial.print("UDP Listening on IP: ");
        Serial.println(WiFi.localIP());
        udp.onPacket([](AsyncUDPPacket packet) {
            Serial.print("UDP Packet Type: ");
            Serial.print(packet.isBroadcast()?"Broadcast":packet.isMulticast()?"Multicast":"Unicast");
            Serial.print(", From: ");
            Serial.print(packet.remoteIP());
            Serial.print(":");
            Serial.print(packet.remotePort());
            Serial.print(", To: ");
            Serial.print(packet.localIP());
            Serial.print(":");
            Serial.print(packet.localPort());
            Serial.print(", Length: ");
            Serial.print(packet.length());
            Serial.print(", Data: ");
            Serial.write(packet.data(), packet.length());
            // received == (packet.data());   doesnt like this laks cast ? i dont understand the explanation
         // received == (packet.data(), packet.length()); forbids compariton between pointer and intiger mmmm
        });
    }
}

void loop()
{
        //received ==  ((packet.data());  packet not declared in this scope
       // if ((packet.data()) == "Heartbeat") packet not declared in this scope
   //       Serial.println("Heartbeat returned");
    //   }

Hi Thanks for replying, I tried this but it complaint that it laks cast, and I was totally overwhelmed by the explanations when I googled it, Whoosh way over my head lol

It would be much better if I could read those error messages. You can copy and paste those error messages into a post.

1 Like

Arduino: 1.8.13 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\puter\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\puter\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\puter\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32:PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none -vid-pid=10C4_EA60 -ide-version=10813 -build-path C:\Users\puter\AppData\Local\Temp\arduino_build_51520 -warnings=none -build-cache C:\Users\puter\AppData\Local\Temp\arduino_cache_90732 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc-1.22.0-97-gc752ad5-5.2.0.path=C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -prefs=runtime.tools.esptool_py.path=C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0 -prefs=runtime.tools.esptool_py-3.0.0.path=C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0 -verbose C:\Users\puter\Documents\Arduino\PaulUDPServer\PaulUDPserver\PaulUDPserver.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\puter\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\puter\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\puter\Documents\Arduino\libraries -fqbn=esp32:esp32:esp32:PSRAM=disabled,PartitionScheme=default,CPUFreq=240,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none -vid-pid=10C4_EA60 -ide-version=10813 -build-path C:\Users\puter\AppData\Local\Temp\arduino_build_51520 -warnings=none -build-cache C:\Users\puter\AppData\Local\Temp\arduino_cache_90732 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\mkspiffs\0.2.3 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc-1.22.0-97-gc752ad5-5.2.0.path=C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0 -prefs=runtime.tools.esptool_py.path=C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0 -prefs=runtime.tools.esptool_py-3.0.0.path=C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\3.0.0 -verbose C:\Users\puter\Documents\Arduino\PaulUDPServer\PaulUDPserver\PaulUDPserver.ino

Using board 'esp32' from platform in folder: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6

Using core 'esp32' from platform in folder: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6

cmd /c if exist "C:\Users\puter\Documents\Arduino\PaulUDPServer\PaulUDPserver\partitions.csv" copy /y "C:\Users\puter\Documents\Arduino\PaulUDPServer\PaulUDPserver\partitions.csv" "C:\Users\puter\AppData\Local\Temp\arduino_build_51520\partitions.csv"

cmd /c if not exist "C:\Users\puter\AppData\Local\Temp\arduino_build_51520\partitions.csv" copy "C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\tools\partitions\default.csv" "C:\Users\puter\AppData\Local\Temp\arduino_build_51520\partitions.csv"

Detecting libraries used...

"C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h"" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/config" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/app_trace" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/app_update" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/asio" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/bootloader_support" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/bt" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/coap" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/console" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/efuse" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-tls" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp32" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_adc_cal" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_event" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_http_client" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_http_server" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_https_ota" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_https_server" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_ringbuf" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_websocket_client" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/espcoredump" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/ethernet" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/expat" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/fatfs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freemodbus" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/heap" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/idf_test" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/jsmn" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/json" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/libsodium" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/log" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/lwip" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mbedtls" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mdns" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/micro-ecc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mqtt" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/nghttp" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/nvs_flash" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/openssl" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/protobuf-c" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/protocomm" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/pthread" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/sdmmc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/smartconfig_ack" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/spi_flash" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/spiffs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/tcp_transport" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/tcpip_adapter" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/ulp" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/unity" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/vfs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wear_levelling" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wifi_provisioning" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wpa_supplicant" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/xtensa-debug-module" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-face" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp32-camera" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-face" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10813 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD="ESP32_DEV"" "-DARDUINO_VARIANT="esp32"" -DESP32 -DCORE_DEBUG_LEVEL=0 "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\variants\esp32" "C:\Users\puter\AppData\Local\Temp\arduino_build_51520\sketch\PaulUDPserver.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Alternatives for analogWrite.h: [ESP32Servo-master@0.9.0]

ResolveLibrary(analogWrite.h)

-> candidates: [ESP32Servo-master@0.9.0]

"C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h"" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/config" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/app_trace" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/app_update" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/asio" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/bootloader_support" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/bt" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/coap" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/console" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/efuse" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-tls" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp32" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_adc_cal" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_event" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_http_client" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_http_server" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_https_ota" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_https_server" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_ringbuf" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_websocket_client" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/espcoredump" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/ethernet" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/expat" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/fatfs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freemodbus" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/heap" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/idf_test" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/jsmn" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/json" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/libsodium" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/log" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/lwip" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mbedtls" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mdns" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/micro-ecc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mqtt" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/nghttp" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/nvs_flash" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/openssl" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/protobuf-c" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/protocomm" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/pthread" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/sdmmc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/smartconfig_ack" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/spi_flash" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/spiffs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/tcp_transport" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/tcpip_adapter" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/ulp" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/unity" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/vfs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wear_levelling" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wifi_provisioning" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wpa_supplicant" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/xtensa-debug-module" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-face" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp32-camera" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-face" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10813 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD="ESP32_DEV"" "-DARDUINO_VARIANT="esp32"" -DESP32 -DCORE_DEBUG_LEVEL=0 "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\variants\esp32" "-IC:\Users\puter\Documents\Arduino\libraries\ESP32Servo-master\src" "C:\Users\puter\AppData\Local\Temp\arduino_build_51520\sketch\PaulUDPserver.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Alternatives for WiFi.h: [WiFi@1.2.7 WiFi@1.0]

ResolveLibrary(WiFi.h)

-> candidates: [WiFi@1.2.7 WiFi@1.0]

"C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h"" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/config" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/app_trace" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/app_update" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/asio" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/bootloader_support" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/bt" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/coap" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/console" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/efuse" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-tls" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp32" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_adc_cal" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_event" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_http_client" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_http_server" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_https_ota" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_https_server" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_ringbuf" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_websocket_client" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/espcoredump" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/ethernet" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/expat" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/fatfs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freemodbus" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/heap" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/idf_test" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/jsmn" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/json" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/libsodium" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/log" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/lwip" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mbedtls" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mdns" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/micro-ecc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mqtt" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/nghttp" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/nvs_flash" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/openssl" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/protobuf-c" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/protocomm" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/pthread" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/sdmmc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/smartconfig_ack" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/spi_flash" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/spiffs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/tcp_transport" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/tcpip_adapter" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/ulp" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/unity" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/vfs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wear_levelling" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wifi_provisioning" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wpa_supplicant" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/xtensa-debug-module" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-face" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp32-camera" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-face" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10813 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD="ESP32_DEV"" "-DARDUINO_VARIANT="esp32"" -DESP32 -DCORE_DEBUG_LEVEL=0 "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\variants\esp32" "-IC:\Users\puter\Documents\Arduino\libraries\ESP32Servo-master\src" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src" "C:\Users\puter\AppData\Local\Temp\arduino_build_51520\sketch\PaulUDPserver.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Alternatives for AsyncUDP.h: [AsyncUDP@1.0.0]

ResolveLibrary(AsyncUDP.h)

-> candidates: [AsyncUDP@1.0.0]

"C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h"" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/config" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/app_trace" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/app_update" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/asio" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/bootloader_support" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/bt" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/coap" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/console" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/efuse" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-tls" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp32" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_adc_cal" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_event" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_http_client" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_http_server" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_https_ota" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_https_server" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_ringbuf" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_websocket_client" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/espcoredump" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/ethernet" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/expat" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/fatfs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freemodbus" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/heap" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/idf_test" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/jsmn" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/json" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/libsodium" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/log" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/lwip" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mbedtls" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mdns" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/micro-ecc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mqtt" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/nghttp" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/nvs_flash" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/openssl" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/protobuf-c" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/protocomm" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/pthread" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/sdmmc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/smartconfig_ack" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/spi_flash" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/spiffs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/tcp_transport" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/tcpip_adapter" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/ulp" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/unity" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/vfs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wear_levelling" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wifi_provisioning" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wpa_supplicant" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/xtensa-debug-module" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-face" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp32-camera" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-face" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10813 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD="ESP32_DEV"" "-DARDUINO_VARIANT="esp32"" -DESP32 -DCORE_DEBUG_LEVEL=0 "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\variants\esp32" "-IC:\Users\puter\Documents\Arduino\libraries\ESP32Servo-master\src" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\AsyncUDP\src" "C:\Users\puter\AppData\Local\Temp\arduino_build_51520\sketch\PaulUDPserver.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Using cached library dependencies for file: C:\Users\puter\Documents\Arduino\libraries\ESP32Servo-master\src\ESP32PWM.cpp

Using cached library dependencies for file: C:\Users\puter\Documents\Arduino\libraries\ESP32Servo-master\src\ESP32Servo.cpp

Using cached library dependencies for file: C:\Users\puter\Documents\Arduino\libraries\ESP32Servo-master\src\ESP32Tone.cpp

Using cached library dependencies for file: C:\Users\puter\Documents\Arduino\libraries\ESP32Servo-master\src\analogWrite.cpp

Using cached library dependencies for file: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src\ETH.cpp

Using cached library dependencies for file: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src\WiFi.cpp

Using cached library dependencies for file: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src\WiFiAP.cpp

Using cached library dependencies for file: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src\WiFiClient.cpp

Using cached library dependencies for file: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src\WiFiGeneric.cpp

Using cached library dependencies for file: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src\WiFiMulti.cpp

Using cached library dependencies for file: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src\WiFiSTA.cpp

Using cached library dependencies for file: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src\WiFiScan.cpp

Using cached library dependencies for file: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src\WiFiServer.cpp

Using cached library dependencies for file: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src\WiFiUdp.cpp

Using cached library dependencies for file: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\AsyncUDP\src\AsyncUDP.cpp

Generating function prototypes...

"C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h"" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/config" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/app_trace" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/app_update" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/asio" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/bootloader_support" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/bt" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/coap" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/console" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/efuse" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-tls" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp32" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_adc_cal" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_event" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_http_client" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_http_server" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_https_ota" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_https_server" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_ringbuf" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_websocket_client" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/espcoredump" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/ethernet" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/expat" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/fatfs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freemodbus" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/heap" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/idf_test" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/jsmn" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/json" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/libsodium" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/log" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/lwip" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mbedtls" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mdns" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/micro-ecc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mqtt" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/nghttp" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/nvs_flash" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/openssl" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/protobuf-c" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/protocomm" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/pthread" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/sdmmc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/smartconfig_ack" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/spi_flash" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/spiffs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/tcp_transport" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/tcpip_adapter" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/ulp" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/unity" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/vfs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wear_levelling" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wifi_provisioning" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wpa_supplicant" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/xtensa-debug-module" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-face" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp32-camera" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-face" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10813 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD="ESP32_DEV"" "-DARDUINO_VARIANT="esp32"" -DESP32 -DCORE_DEBUG_LEVEL=0 "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\variants\esp32" "-IC:\Users\puter\Documents\Arduino\libraries\ESP32Servo-master\src" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\AsyncUDP\src" "C:\Users\puter\AppData\Local\Temp\arduino_build_51520\sketch\PaulUDPserver.ino.cpp" -o "C:\Users\puter\AppData\Local\Temp\arduino_build_51520\preproc\ctags_target_for_gcc_minus_e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE

"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\puter\AppData\Local\Temp\arduino_build_51520\preproc\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\Users\puter\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0/bin/xtensa-esp32-elf-g++" -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h"" -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/config" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/app_trace" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/app_update" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/asio" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/bootloader_support" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/bt" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/coap" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/console" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/driver" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/efuse" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-tls" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp32" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_adc_cal" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_event" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_http_client" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_http_server" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_https_ota" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_https_server" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_ringbuf" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp_websocket_client" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/espcoredump" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/ethernet" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/expat" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/fatfs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freemodbus" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/freertos" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/heap" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/idf_test" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/jsmn" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/json" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/libsodium" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/log" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/lwip" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mbedtls" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mdns" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/micro-ecc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/mqtt" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/newlib" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/nghttp" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/nvs_flash" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/openssl" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/protobuf-c" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/protocomm" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/pthread" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/sdmmc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/smartconfig_ack" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/soc" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/spi_flash" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/spiffs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/tcp_transport" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/tcpip_adapter" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/ulp" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/unity" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/vfs" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wear_levelling" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wifi_provisioning" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/wpa_supplicant" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/xtensa-debug-module" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-face" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp32-camera" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/esp-face" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6/tools/sdk/include/fb_gfx" -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -MMD -c -DF_CPU=240000000L -DARDUINO=10813 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD="ESP32_DEV"" "-DARDUINO_VARIANT="esp32"" -DESP32 -DCORE_DEBUG_LEVEL=0 "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\variants\esp32" "-IC:\Users\puter\Documents\Arduino\libraries\ESP32Servo-master\src" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi\src" "-IC:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\AsyncUDP\src" "C:\Users\puter\AppData\Local\Temp\arduino_build_51520\sketch\PaulUDPserver.ino.cpp" -o "C:\Users\puter\AppData\Local\Temp\arduino_build_51520\sketch\PaulUDPserver.ino.cpp.o"

C:\Users\puter\Documents\Arduino\PaulUDPServer\PaulUDPserver\PaulUDPserver.ino: In lambda function:

PaulUDPserver:74:40: error: comparison between distinct pointer types 'char*' and 'uint8_t* {aka unsigned char*}' lacks a cast [-fpermissive]

          received == (packet.data());   //doesnt like this laks cast ? i dont understand the explanation

                                    ^

Multiple libraries were found for "WiFi.h"

Used: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi

Not used: C:\Program Files (x86)\Arduino\libraries\WiFi

Using library ESP32Servo-master at version 0.9.0 in folder: C:\Users\puter\Documents\Arduino\libraries\ESP32Servo-master

Using library WiFi at version 1.0 in folder: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi

Using library AsyncUDP at version 1.0.0 in folder: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\AsyncUDP

exit status 1

comparison between distinct pointer types 'char*' and 'uint8_t* {aka unsigned char*}' lacks a cast [-fpermissive]

I turned on verbose ... would you like the short version ...lol thats a lot of report..

The short version of the error.

It also complains about the multiple versions of wifi.h.. but i've read that this can be ignored
it only shows with other errors.
If i remove the line received == (packet.data()); it compiles with no errors.
Thank you
paul

Arduino: 1.8.13 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

C:\Users\puter\Documents\Arduino\PaulUDPServer\PaulUDPserver\PaulUDPserver.ino: In lambda function:

PaulUDPserver:74:40: error: comparison between distinct pointer types 'char*' and 'uint8_t* {aka unsigned char*}' lacks a cast [-fpermissive]

          received == (packet.data());   //doesnt like this laks cast ? i dont understand the explanation

                                    ^

Multiple libraries were found for "WiFi.h"

Used: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi

Not used: C:\Program Files (x86)\Arduino\libraries\WiFi

exit status 1

comparison between distinct pointer types 'char*' and 'uint8_t* {aka unsigned char*}' lacks a cast [-fpermissive]

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

The received data is an array of unit8_t's. If you want to recast the data this might work "String srogopdf = String(packet.data()); "

1 Like

I dont fully understand , but I copied and paste this in, and it errors with ..
no matching function for call to 'String(uint8_t*)'

do i need to define sprogopdf somewhere maybe?

Arduino: 1.8.13 (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

C:\Users\puter\Documents\Arduino\PaulUDPServer\PaulUDPserver\PaulUDPserver.ino: In lambda function:

PaulUDPserver:73:51: error: no matching function for call to 'String(uint8_t*)'

         String srogopdf = String(packet.data());

                                               ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:69:18: note: candidate: String::String(long unsigned int, unsigned char)

     explicit String(unsigned long, unsigned char base = 10);

              ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:69:18: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'long unsigned int' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:68:18: note: candidate: String::String(long int, unsigned char)

     explicit String(long, unsigned char base = 10);

              ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:68:18: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'long int' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:67:18: note: candidate: String::String(unsigned int, unsigned char)

     explicit String(unsigned int, unsigned char base = 10);

              ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:67:18: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'unsigned int' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:66:18: note: candidate: String::String(int, unsigned char)

     explicit String(int, unsigned char base = 10);

              ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:66:18: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:65:18: note: candidate: String::String(unsigned char, unsigned char)

     explicit String(unsigned char, unsigned char base = 10);

              ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:65:18: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'unsigned char' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:64:18: note: candidate: String::String(char)

     explicit String(char c);

              ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:64:18: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'char' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:62:9: note: candidate: String::String(StringSumHelper&&)

     String(StringSumHelper &&rval);

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:62:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:51: error: conversion from 'uint8_t* {aka unsigned char*}' to 'StringSumHelper' is ambiguous

         String srogopdf = String(packet.data());

                                               ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:358:9: note: candidate: StringSumHelper::StringSumHelper(long unsigned int)

     StringSumHelper(unsigned long num) :

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:358:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'long unsigned int' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:355:9: note: candidate: StringSumHelper::StringSumHelper(long int)

     StringSumHelper(long num) :

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:355:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'long int' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:352:9: note: candidate: StringSumHelper::StringSumHelper(unsigned int)

     StringSumHelper(unsigned int num) :

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:352:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'unsigned int' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:349:9: note: candidate: StringSumHelper::StringSumHelper(int)

     StringSumHelper(int num) :

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:349:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:346:9: note: candidate: StringSumHelper::StringSumHelper(unsigned char)

     StringSumHelper(unsigned char num) :

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:346:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'unsigned char' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:343:9: note: candidate: StringSumHelper::StringSumHelper(char)

     StringSumHelper(char c) :

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:343:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'char' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:340:9: note: candidate: StringSumHelper::StringSumHelper(const char*)

     StringSumHelper(const char *p) :

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:340:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'const char*' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:61:9: note: candidate: String::String(String&&)

     String(String &&rval);

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:61:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid user-defined conversion from 'uint8_t* {aka unsigned char*}' to 'String&&' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:57:9: note: candidate is: String::String(const char*)

     String(const char *cstr = "");

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:57:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'const char*' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'const char*' [-fpermissive]

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:57:9: note: initializing argument 1 of 'String::String(const char*)'

     String(const char *cstr = "");

     ^

PaulUDPserver:73:51: error: conversion to non-const reference type 'class String&&' from rvalue of type 'String' [-fpermissive]

         String srogopdf = String(packet.data());

                                               ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:58:9: note: candidate: String::String(const String&)

     String(const String &str);

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:58:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid user-defined conversion from 'uint8_t* {aka unsigned char*}' to 'const String&' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:57:9: note: candidate is: String::String(const char*)

     String(const char *cstr = "");

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:57:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'const char*' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'const char*' [-fpermissive]

In file included from C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/Arduino.h:146:0,

             from sketch\PaulUDPserver.ino.cpp:1:

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:57:9: note: initializing argument 1 of 'String::String(const char*)'

     String(const char *cstr = "");

     ^

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:57:9: note: candidate: String::String(const char*)

C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\cores\esp32/WString.h:57:9: note: conversion of argument 1 would be ill-formed:

PaulUDPserver:73:49: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'const char*' [-fpermissive]

         String srogopdf = String(packet.data());

                                             ^

Multiple libraries were found for "WiFi.h"

Used: C:\Users\puter\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi

Not used: C:\Program Files (x86)\Arduino\libraries\WiFi

exit status 1

no matching function for call to 'String(uint8_t*)'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

cool. search the internet for "convert uint8_t to string"

2 Likes

Thank you !

I found

He got a bit slated for using the string command lol.
But i translated it to be
received = (char*)(packet.data());
And this seems to work fine, as am only using a short bit of code and short strings this should be fine for my use.
I will play around with it a bit more tomorrow after work.But it seems to be working like this.
Your a star !
Thank you very much for your support..
Greatly appreciated..
Paul

2 Likes

I'd be highly suspect of that "solution". From AsyncUDP.cpp:

uint8_t * AsyncUDPPacket::data()
{
    return _data;
}

So, the returned pointer points to an array of uint8_t. But, since a UDP packet doesn't have to contain ASCII, the array won't be null-terminated. That's why you need the length() function. So, the String object you generate will probably contain garbage characters past the end of the array up to the first null. You're flirting with a memory problem.

I'd do something like the following. It compiles but is untested. Also, for brevity, I left out all the stuff that's not necessary to demonstrate the technique ... WiFi connection, etc.

#include "Arduino.h"
#include "AsyncUDP.h"

AsyncUDP udp;
void processPacket(AsyncUDPPacket &packet);
bool comparePacketString(AsyncUDPPacket &packet, const char *str);
const uint16_t udpPort = 1234;

void setup() {
  if (udp.listen(udpPort)) {
    udp.onPacket(processPacket);
  } else {
    Serial.println("Failed to initiate UDP Packet Listening");
  }
}

void loop() {
}

void processPacket(AsyncUDPPacket &packet) {
  if (comparePacketString(packet, "Intruder")) {
    Serial.println("Intruder");
  } else if (comparePacketString(packet, "Heartbeat")) {
    Serial.println("Heartbeat");
  }
}

bool comparePacketString(AsyncUDPPacket &packet, const char *str) {
  size_t len = strlen(str);
  if (packet.length() < len) {
    return false;
  }
  if (memcmp(str, packet.data(), len) == 0) {
    return true;
  }
  return false;
}

But, this whole topic begs the question … why are you bothering to send a multi-byte ASCII string just to convey so little information. Why don't you encode the state into a single-byte value and send just that? For example, "Heartbeat" = 1 and "Intruder" = 2.

1 Like

ooo that code looks much slimmed down, I think I get the gist of whats happening though, you have gone a bit techno lol..
Your example looks like what I needed when I started the project rather than the sample I modified..

looking at the way I had it, i hit a problem that I hadn't anticipated, reading the packet.data() always returned Heartbeat when checked.
It persists. I originally wrote this with RF24 and Arduino nano.
I used words rather than 0,1 mainly as I am a noobe and this made my code a bit easier reading, as i had a transmitter in my garage and on 3 different garden gates around the bungalow.
But the garage is detached around the back and I sleep in the front and the range was struggling despite upgrading the aerials.
I had a play the other week with an esp8266 and a webhook, and got it working to notify my mobile when the laser stopped at work.
Next i decided to replace my little home alarm with esp32, but all the video examples used a server running html on a esp32 server unit, which I couldn't get my head round how to make a esp32 talk to another esp32.. all the other TCP project examples seem to connect direct from esp32 to esp32 which gave me the same range problems.. then I fount the UDP master and slave examples, and I thought I understood enough of those to achieve, until i hit a block with this packet.data()..
There is a lot in the code I showed you that I will eventually trim out, like the lines printing the ip addresses, as I've started with an example, I am not sure to start whats safe for me to remove lol
This language is a huge learning curve from the days of basic and cobol, I've spent many hours but still feel i haven't learned much of the basics.
Any how thank you again, I hope fully will get an hour or two this evening to give this a try .
Paul

Thank you for that bit of magic code.
I don't fully understand it but I sort of get the gist of it, enough to play around and get it to do what I want.Thank you for your help with this.
Paul

#include "Arduino.h"
#include "AsyncUDP.h"
#include "WiFi.h"
#include <ESP32Tone.h>

const char * ssid = "Paul2";
const char * password = "abcdeabcde";
const int buzzer = 4;
const int GarR = 2;  // garage Red LED  (RGB LED's)
const int GarG = 5;  // garage Green LED
const int GatR = 18;  // Gate Red LED 
const int GatG = 19;  // Gate Green LED
AsyncUDP udp;
IPAddress local_IP(192, 168, 0, 32);
IPAddress gateway(192, 168, 0, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress primaryDNS(8, 8, 8, 8);   //optional
IPAddress secondaryDNS(8, 8, 4, 4); //optional

void processPacket(AsyncUDPPacket &packet);
bool comparePacketString(AsyncUDPPacket &packet, const char *str);
const uint16_t udpPort = 1234;

void setup() {
  
  pinMode(buzzer, OUTPUT);
  pinMode(GarR, OUTPUT);
  pinMode(GarG, OUTPUT);
  pinMode(GatR, OUTPUT);
  pinMode(GatG, OUTPUT); 
  Serial.begin(9600);
    WiFi.mode(WIFI_STA);
    WiFi.begin(ssid, password);
    if (!WiFi.config(local_IP, gateway, subnet, primaryDNS, secondaryDNS)) {
    Serial.println("STA Failed to configure");
    }
//        if(udp.listen(1234)) {
//        Serial.print("UDP Listening on IP: ");
//        Serial.println(WiFi.localIP());
//}


  if (udp.listen(udpPort)) {
       udp.onPacket(processPacket);
   } else {
      Serial.println("Failed to initiate UDP Packet Listening");
 }
}

void loop() {

}

void processPacket(AsyncUDPPacket &packet) {
    if (comparePacketString(packet, "GarageDetect")) {
      Serial.println("GarageDetect");
        digitalWrite(GarR,HIGH);
          delay(100);
          digitalWrite(GarR,LOW);
          tone(buzzer, 3000,  300);
  } else if (comparePacketString(packet, "GarageLive")) {
      Serial.println("GarageLive");
        digitalWrite(GarG,HIGH);
          delay(100);
          digitalWrite(GarG,LOW);
  }
    if (comparePacketString(packet, "GateDetect")) {
      Serial.println("GateDetect");
        digitalWrite(GatR,HIGH);
          delay(100);
          digitalWrite(GatR,LOW);
        tone(buzzer, 3000,  300);
  } else if (comparePacketString(packet, "GateLive")) {
      Serial.println("GateLive");
        digitalWrite(GatG,HIGH);
          delay(100);
          digitalWrite(GatG,LOW);
  }


}

bool comparePacketString(AsyncUDPPacket &packet, const char *str) {
  size_t len = strlen(str);
  if (packet.length() < len) {
    return false;
  }
  if (memcmp(str, packet.data(), len) == 0) {
    return true;
  }
  return false;
}

I am still puzzled how this all continues to work despite no code in the loop section.. but it works, thank you .