Data type for Custom Service NTF_CFG Write Indication

6 posts / 0 new
Last post
abremen
Offline
Last seen:4 years 5 months ago
加入:2015-02-10 17:44
Data type for Custom Service NTF_CFG Write Indication

Dear support,

Currently I am implementing a Custom Service (CUSTS1 / CUSTS2) with a characteristic that as a Notify property (as in the Pillar examples), using SDK 5.0.3. I was wondering what the data type is for a _NTF_CFG handle; Is there a custom data type defined in the SDK or in one of the example projects?

By printing out the parameters->length field of the custs2_val_write_ind parameters in the handler for the CUSTS2_VAL_WRITE_IND message, I figured out that the number of bytes sent is 2. The value of parameters->value[0] toggles between 1 and 0 (when respectively enabling / disabling sending of notifications), the value of parameters[1] didn't change.

Can you point me to the specification somewhere? It's clear that byte0 is the ntf_cfg, does byte1 have any purpose?

Kind regards,
Arjan

Device:
abremen
Offline
Last seen:4 years 5 months ago
加入:2015-02-10 17:44
Or is this just a uint16 type

Or is this just a uint16 type value (in little endian format) that can be 1 (enabled) or 0 (disabled)?

Kind regards,
Arjan

MT_dialog
Offline
Last seen:3 months 1 day ago
Staff
加入:2015-06-08 11:34
Hi abremen,

Hi abremen,

The _NTF_CFG characteristics are a 2 byte in lengthfield(uint16_t), 0x0001 for Notification and 0x0002 for indication. Please check the specification in section 3.3.3.3.

Thanks MT_dialog

abremen
Offline
Last seen:4 years 5 months ago
加入:2015-02-10 17:44
Hi MT_dialog,

Hi MT_dialog,

Thanks for your response. Could you please let me know which document you are referring to?

Thanks,
Arjan

MT_dialog
Offline
Last seen:3 months 1 day ago
Staff
加入:2015-06-08 11:34
Hi abremen,

Hi abremen,

The specification of the BLE Core 4.0.

Thanks MT_dialog

abremen
Offline
Last seen:4 years 5 months ago
加入:2015-02-10 17:44
Hi MT_dialog,

Hi MT_dialog,

Thanks. This topic may now be closed.

Kind regards,
Arjan

Topic locked