BLE custom profiles with security
Posted: Sun Jul 15, 2018 5:51 pm
Hi!
I am new to BLE and trying to make client - server ESP32 system that has custom BLE services and use security.
So I am looking in way of combining examples from IDF folder: gatt_security_server, gatt_security_client, gatt_server, gatt_client, because security_server/client applications are made with heart thermometer service.
I see that security examples use different way of attribute creating in gatts_profile_event_handler event ESP_GATTS_REG_EVT case than non security examples.
I see that non security examples have more complex ESP_GATTS_WRITE_EVT processing.
Can some one tell which example would be most complete and best to use as start point for own application?
And one thing. How can I understand which attribute is being written in ESP_GATTS_WRITE_EVT? I can get handle, but how to link that to my defined attributes?
Thanks,
Kristaps
I am new to BLE and trying to make client - server ESP32 system that has custom BLE services and use security.
So I am looking in way of combining examples from IDF folder: gatt_security_server, gatt_security_client, gatt_server, gatt_client, because security_server/client applications are made with heart thermometer service.
I see that security examples use different way of attribute creating in gatts_profile_event_handler event ESP_GATTS_REG_EVT case than non security examples.
I see that non security examples have more complex ESP_GATTS_WRITE_EVT processing.
Can some one tell which example would be most complete and best to use as start point for own application?
And one thing. How can I understand which attribute is being written in ESP_GATTS_WRITE_EVT? I can get handle, but how to link that to my defined attributes?
Thanks,
Kristaps