239.255.0.1 through to 239.255.255.255
so a look up is not going to work unless I have to.
Does anyone know how to construct an IP address from variables?
I'm currently using:
IPAddress IP_Multicast_Out(239, 255, 0, 1);
unsigned int Port_Multicast_Out = 5568;
followed by
Udp.beginPacketMulticast(IP_Multicast_Out, Port_Multicast_Out, WiFi.localIP());
which works fine for Udp.writes to a single IP. If I try to introduce variables at any point (that I've tried - to many to list) it doesn't compile or sends to 0.0.0.0 .
I'm guessing the 'IPAddress' format is something I'm missing, any help appreciated.