BLE Events Callback? Or Reset Button in App?
Posted: 22:27, 07 Apr 2015
I have a device based on the Cypress PSoC 4 BLE Pioneer Kit, which has been a trial-by-fire crash-course in learning about the BLE stack. One thing I learned about is BLE event callbacks, meaning if something changes in the status of the BLE connection, e.g. disconnects, write requests and so on, the stack calls a custom routine in the firmware with a code indicating what the event was. Then you can code the callback function to do things like start advertising again immediately after a disconnect, for example.
I was wondering if there is anything like this on the client/central/app side in the Evothings world. I sometimes find that my device and its app just seem to loose contact. I can always push the reset button on the device, but sometimes it seems I need to reset the app as well. Right now I do that by going back to the Evothings client start page and reloading the app, but it would be nice if I could handle that with something like a callback.
If it isn't easy for me to get a callback working in relatively short order, is there an easy way to include a RESET button right in the app?
Thanks,
Don
I was wondering if there is anything like this on the client/central/app side in the Evothings world. I sometimes find that my device and its app just seem to loose contact. I can always push the reset button on the device, but sometimes it seems I need to reset the app as well. Right now I do that by going back to the Evothings client start page and reloading the app, but it would be nice if I could handle that with something like a callback.
If it isn't easy for me to get a callback working in relatively short order, is there an easy way to include a RESET button right in the app?
Thanks,
Don