This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TI SDK sample code string issue

TI persons:

The SDK sample code in "accelerometer.c" contains code similar to the following:

static uint8 accelEnabledUserDesc[14] = "Accel Enable\0";

I assume that this saves 2 string terminators.  Is this a (strange and bad) requirement of the underlying TI code, or just an programmer's error?

Thanks in advance, MH 

  • Hello Mark,

    There doesn't appear to be anything in the CoreBluetooth v4.0 specs in relation to a null terminated characteristic description.

    I would think that this is done to accommodate the LCD in the SmartRF05 modules.

    Thanks,