Possible to send a hex packet with ofxUDPManager?

Edit-

The hex packet just needs to be an array of chars.
The issue I was having came from values that needed to be explicitly static_cast to char. Works fine now.

`

char packet[50] = { 0x31, 0x00, 0x00, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x66, 0x00, 0x00, 0x00, 0x00, 0x55, 0x55, static_cast<char>(0xFF), static_cast<char>(0xFF), static_cast<char>(0xFF), static_cast<char>(0xFF), static_cast<char>(0xAC), 0x0D, 0x00, 0x04, 0x00, 0x00, 0};

int res = udpManager->Send(packet, 50);

`


Hey all-

I’m wondering if its possible to send a hex packet using ofxUDPManager?

For example- trying to send “31 00 00 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 66 00 00 00 00 55 55 FF FF FF FF AC 0D 00 04 00 00” as a string doesn’t seem to be working.

Should I be using a different type or making it something like a byte array?

Thanks!