BLE characteristic syntax question

look at the BLECharacteristic class constructor

you have various way of instantiating one, see

if you want a bunch of bytes (a struct payload for example), just use the BLECharacteristic constructor and provide the right value size.