ESP32 UDP - WiFiUDP how to send bytes using udp protocol?
Posted: Wed Jun 07, 2017 1:05 am
Hi,
I am trying to use WiFiUDP class. When I try to send the data using the function wifiudp.write(buf, l), I get compiler error. Which says:
error: macro "write" requires 3 arguments, but only 2 given wifiudp.write
https://github.com/espressif/arduino-es ... /WiFiUdp.h
Do you have any ideas why this happening, it somehow bypassing the overloaded function in WiFiUDP class and going straight to lwip macro ?
Please let me know if you know why this happening, what am I missing.
Objective is to send the byte packets via UDP. Please note that I can send the data fine if I use wifiudp.printf function. I would prefer to send bytes.
Thanks,
Avi
I am trying to use WiFiUDP class. When I try to send the data using the function wifiudp.write(buf, l), I get compiler error. Which says:
error: macro "write" requires 3 arguments, but only 2 given wifiudp.write
https://github.com/espressif/arduino-es ... /WiFiUdp.h
Do you have any ideas why this happening, it somehow bypassing the overloaded function in WiFiUDP class and going straight to lwip macro ?
Please let me know if you know why this happening, what am I missing.
Objective is to send the byte packets via UDP. Please note that I can send the data fine if I use wifiudp.printf function. I would prefer to send bytes.
Thanks,
Avi