Topic

FAQ
Login Register
How to enable Notify in attributes
Sep 15, 2020 18:40

/

A

/A


I have used like this but i have not able to see the notifications during data changes, is this correct?

 static const u8 NewDataServer2ClientCharVal[19] = {
CHAR_PROP_READ | CHAR_PROP_NOTIFY,
U16_LO(SPP_SERVER_TO_CLIENT_DP_H),           U16_HI(SPP_SERVER_TO_CLIENT_DP_H),
TELINK_SPP_DATA_SERVER2CLIENT
};


{3,ATT_PERMISSIONS_READ,2,16,(u8*)(&my_primaryServiceUUID), (u8*)(&TelinkSppServiceUUID), 0},
{0,ATT_PERMISSIONS_READ,2,sizeof(NewDataServer2ClientCharVal),(u8*)(&my_characterUUID), (u8*)(NewDataServer2ClientCharVal), 0}, //prop
{0,ATT_PERMISSIONS_READ,16,sizeof(uart_rec_data),(u8*)(&TelinkSppDataServer2ClientUUID), (unsigned char *)(&uart_rec_data), 0}, //value


2 replies
TL_bloom5 Sep 16, 2020 15:23
0
/A

Hi Praveenb1,

    The attributes of a service seem correct. But your description of the problem is hard to understand, can you elaborate a bit more?

Praveenb1 [Author] Sep 17, 2020 13:15
0
/A

Thanks for reply, this problem was solved.