There is a lot of code there to read, so I just have a few comments:
I would not use the AUTO setting for the antenna. It has been problematic in certain cases in the past. If you don’t have an external antenna hooked up, just use the default.
Thanks for that, its my first time working with UDP and the documentation is a little unclear on that front.
I’ve updated to the correct multicast address, but its still not working.
When it tries to receive the UDP packets it seems to always come back with a size < 0 because it always shows the dmx data field in the cloud as “Error0” which means its something to do with my UDP config or code.
I think I found one of the problems, it doesn’t seem to like using the packetWorkingBuffer but it works fine with packet instead.
ie the below doesn’t work but
int size = udp.receivePacket(packetWorkingBuffer->raw, E131_PACKET_SIZE);
but
int size = udp.receivePacket(packet->raw, E131_PACKET_SIZE);
does.
Well it doesn’t really matter why it doesn’t work as it was used for double buffering and with reading of whole packets that not needed.
I’ve updated the code and it should all work if anyone else is interested.