I'm new to Bluetooth LE, Python and C. I have the S130 python examples for heart rate testing. I am attempting to modify the heart rate collector code to act as our central device which can read and write data to a TI based peripheral.
The example seems to connect, then loop notifications. In my scenario this seems like a good place to add a few read and write commands. Here's what I don't understand: how is the ble_evt_handler never "NONE" and what/when does it get set? Also how does the ble_event.header.evt_id ever become something other than CONNECT when its only called once?
Do I even need to worry about setting up on_write and corresponding read in this case since I'm not doing a hrm?