Now that brain has warmed up I'm thinking a little clearer.
The solution is relatively straightforward
#define INSTANCE_ANALOG (0u) uint16_t myAnalogValue; uint8_t myByteArray; myByteArray = (myAnalogValue & 0xFF); myByteArray = (myAnalogValue >> 8); apiResult = Cy_BLE_AIOSS_SendNotification(appConnHandle, CY_BLE_AIOS_ANALOG, INSTANCE_ANALOG, sizeof(myByteArray), (uint8 *)&myByteArray );
Now surely, this opens up the ability to send uint8_t array sizes of any length, which goes against the Automation IO Service analog value requirement of only using a uint16_t type for value with an exponent to show size.
Hence I am suggesting that the API changes to only allowing uint16_t values and the size option is removed as a parameter.