Const char *msg problems with ofxTCPClient::sendRawMesg

I am trying to send a few hex values via TCP to a projector. But i can’t work out how to prep the array so that TCP is happy.

 const char packet[] = { 0xbe, 0xef, 0x03,  0x06, 0x00, 0x0e, 0xd2, 0x01, 0x00, 0x00, 0x02, 0x03, 0x00};
 client.sendRawMsg(packet, packet.size());

gives me this error:

.../src/ofApp.cpp:65:33: Constant expression evaluates to 190 which cannot be narrowed to type 'char'

i tried:

const unsigned char packet[] == { 0xbe, 0xef, 0x03,  0x06, 0x00, 0x0e, 0xd2, 0x01, 0x00, 0x00, 0x02, 0x03, 0x00};

which causes this error:

.../src/ofApp.cpp:69:40: Cannot initialize a parameter of type 'const char *' with an lvalue of type 'const unsigned char [13]'

i am sure i am missing something simple.

i found a solution that worked with my projector.
it does not really answer my original question, but it works for me.

const char packet[] = {"\xBE\xEF\x03\x06\x00\xf3\x93\x01\x00\x05\x24\x00\x00"};
client.sendRawBytes(packet, 13);