Search found 1 match

by rcarnemolla
Tue Feb 14, 2023 10:15 pm
Forum: ESP-IDF
Topic: Pass an Object into a BLE Callback Function
Replies: 1
Views: 1971

Pass an Object into a BLE Callback Function

I am writing callbacks for the esp_ble_gatts_register_callback and esp_ble_gap_register_callback to be member functions of a new class, but they are static and I need to access the class's member objects inside the callbacks. I was hoping to pass the this pointer as an argument, but the register fun...