Moderator: igrr
I have tried doing this as follows:
char packet[] = {"\x16\x03\x01\x00\xf0"};
client.write(packet, sizeof(packet));
But I get compilation errors: http://i.imgur.com/dryQpwp.png
It's worth noting that the following works fine (but obviously I want to avoid having to use a const):
const uint8_t packet[] = "\x16\x03\x01\x00\xf0";
client.write(packet, sizeof(packet));
As I said, simply do casting :
char packet[] = "\x16\x03\x01\x00\xf0";
client.write((const uint8_t *)packet, sizeof(packet));