STM32 CODE (MBED)
Here is my last push effort to get my IoT Bike lock working. Unfortunately I haven't been as successful as I wished to be, but will continue working on it, even after the deadline, but will have a few more updates today with where I am at. I have updated the mbed code in order to lock and unlock the bike lock upon a secured Bluetooth connection, however, I have not yet implemented a way to get it to unlock and lock based on the push of the button in the app. This will be my next big step. I connect to the app using the BLE_API library that is provided in the mbed online compiler and used the BLE_HeartRate_IDB0XA1 as a starting point. I also have an instance of the sensor board, but as I have not figured out a way to change the state (locked/unlocked) that the alarm system relies on, it does not work properly. To implement this I used the X_NUCLEO_IKS01A1 and HelloWorld_IKS01A1 as a basis for understanding how it all works.
So I currently have a lock which does lock and unlock, just not on command, so it is a pretty useless lock, also causing the alarm system to be useless. These will be my next steps. Unfortunately, due to unforeseen circumstances, I was behind the ball on this project, causing an incomplete submission on the deadline. However, I am able to present a mostly complete project with a clear idea of how the last 10% should look. As I said, I will be posting a few more updates tonight, with pictures, code, and information on other parts of this project. I have enjoyed working with this technology and learning many new things along the way, and want to thank Element14 and STMicroelectronics for the opportnunity, and wish I could have completed my project sooner.