Hi guys, I just ordered doc.mokotechnology.com/index.php device which is nrf52 + accelerometer + firmware that is just broadcasting the location over BLE. This is almost what I want, I just need to customize the device a little. What I need is just the BLE to advertise simple encrypted UUID and when the accelerometer detects movement, the device to stop advertising.I'm new to programming with Microcontrollers and especially with the Nordic spec. So, my questions are:1. Which example from the SDK examples to use in order to have a min. changes ? 2. Is there a guide that I can read that will give me a clue what I need to change and how to do it ?Regards,Milen Yanchev
What I need is just the BLE to advertise simple encrypted UUID
Please see this post and this post.
and when the accelerometer detects movement, the device to stop advertising.
Please see this post.
Thanks a lot for your info! I will check the posts
Amanda, thanks for the provided posts, but I don't think they are enough for a beginner to write something.
For example, in the post for stopping the advertising, they are explaining some functions that eventually can stop it, but I don't see anything for accelerometer and how it can be integrated with this ble_app_uart project and be used as stopping flag.
I will really appreciate if there is something like that for a beginners.
There is no example of your requirement. You could refer to the nRF52-Bluetooth-Course tutorial and use an event handler to stop advertising (sd_ble_gap_adv_stop() function).
Thanks for sharing this course Amanda. It's really useful for someone new to see the big picture.
However, the example doesn't work. Following the step by step guide, when I try to compile it, I get - ‘m_cus’ undeclared (first use in this function).
Then I clone the Git repo and try again, this time I hit another issue with the logging header.
- /home/components/libraries/experimental_log/src/nrf_log_backend_rtt.c: No such file or directory
Can you please fix it ?