I'm sorry if this has been answered previously - but I just want to verify some code I wrote today.
I am extending the SPP acceptor demo (Classic bluetooth) and I need to trigger writes to the BLE client (on a phone) from a different task.
What I did was save a reference to the handle inside off the ESP_SPP_SRV_OPEN_EVT callback. My question is, will this handle ever change? In that case I would be SOL - I'm only familiar w/ BLE so I'm a little lost.
Code: Select all
case ESP_SPP_SRV_OPEN_EVT: handle = param->open.handle; ESP_LOGI(SPP_TAG, "ESP_SPP_SRV_OPEN_EVT");