This is possible by BLE OTA (Over the Air) firmware update.
Please refer our Application note for more details.
Also, our CySmart Android App provides this feature. You can use CySmart for the same or refer CySmart's source code to add thid feature in your own App.
- Madhu Sudhan