Estephania,
Unfortunately, that does link does not answer my question. I probably should have been more explicit in my original post, so I will elaborate now.
The glucose monitor example has this in gatt_db.h:
PRIMARY_SERVICE(service_gap, gBleSig_GenericAccessProfile_d)
CHARACTERISTIC(char_device_name, gBleSig_GapDeviceName_d, (gGattCharPropRead_c | gGattCharPropWrite_c) )
VALUE(value_device_name, gBleSig_GapDeviceName_d, (gPermissionFlagReadable_c | gPermissionFlagWritable_c), 11, "FSL_BLE_GLS")
CHARACTERISTIC(char_appearance, gBleSig_GapAppearance_d, (gGattCharPropRead_c) )
VALUE(value_appearance, gBleSig_GapAppearance_d, (gPermissionFlagReadable_c), 2, UuidArray(gGenericGlucoseMeter_c))
CHARACTERISTIC(char_ppcp, gBleSig_GapPpcp_d, (gGattCharPropRead_c) )
VALUE(value_ppcp, gBleSig_GapPpcp_d, (gPermissionFlagReadable_c), 8, 0x0A, 0x00, 0x10, 0x00, 0x64, 0x00, 0xE2, 0x04)
I would like to change the value of the char_device_name dynamically at runtime. It is currently "FSL_BLE_GLS".
I tried using a variable as the last argument in the VALUE macro, but that gives me an error that says "initializer element is not computable at load time".
Is there any way to change that characteristic value at run time?
Thanks,
Rick