Hi, I am defining a uuid like this to use it in advertising data for my CC2540
static const uint8 myService[16] = { 0xD0, 0x00, 0x02C, 0x17, 0x1F, 0x4B, 0x0C, 0xA4, 0x899, 0x8E, 0xCE, 0xB5, 0x31, 0xF4, 0x95, 0x7D };
static uint8 advertData[] =
{
// Flags; this sets the device to use limited discoverable
// mode (advertises for 30 seconds at a time) instead of general
// discoverable mode (advertises indefinitely)
0x02, // length of this data
GAP_ADTYPE_FLAGS,
DEFAULT_DISCOVERABLE_MODE | GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,
0x11,
GAP_ADTYPE_128BIT_MORE,
myService,
};
But I keep getting this error:
Error[Pe144]: a value of type "unsigned char const __xdata_rom *" cannot be used to initialize an entity of type "uint8"
after GAP_ADTYPE_128BIT_MORE for myService