Sending UDP packages over the mesh
Hello, is it possible to send UDP packages over the mesh? Lets say a reading of an analog input or some led commands in real time.
This is the way i do it with WiFiUDP
#include <WiFiUDP.h>
...
void sendLedData(uint32_t data, uint8_t op_mode)
{
struct led_command send_data;
send_data.opmode = op_mode;
send_data.data = data;
for (int i = 0; i < NUMBER_OF_CLIENTS; i++)
{
IPAddress ip(192,168,4,2 + i);
UDP.beginPacket(ip, 7001);
UDP.write((char*)&send_data,sizeof(struct led_command));
UDP.endPacket();
}
}