Multiple GATTC_CMP_EVT:GATTC_NOTIFY messages for one notification

3 posts / 0 new
Last post
marcodg
Offline
Last seen:2 years 8 months ago
Joined:2015-01-14 17:58
Multiple GATTC_CMP_EVT:GATTC_NOTIFY messages for one notification

When I update the attribute database (for example):


// Update value in database
attmdb_att_set_value(handle, data_size, (uint8_t *)param->data);
if(env.notify_property_status & PRF_CLI_START_NTF)
// Send notification through GATT
prf_server_send_event((prf_env_struct *)&env, false, handle);

I get two GATTC_CMP_EVT messages with req=GATTC_NOTIFY (status == 0 on both). Is this proper or is there something I'm not doing correctly.
如果这是正确的,两个事件完成什么?Can I always rely on there being two? I need to keep track of how many notifications have been sent but if this doesn't work, I'll need to find another way.

thanks,
marco

Device:
marcodg
Offline
Last seen:2 years 8 months ago
Joined:2015-01-14 17:58
I think I'm having other,

I think I'm having other, separate issues that are causing this. Please disregard.
marco

MT_dialog
Offline
Last seen:6 days 14 hours ago
Staff
Joined:2015-06-08 11:34
Hi marcodg,

Hi marcodg,

Thanks for indicating.

MT_dialog