I have purchased a redbear BLE nano v2 with nrf52832. Github link here. I have not purchased the USB Daplink.
My project:
I have 2 individual IoT lamps (basically an electron with an LED) and I would like to detect when the lamps are nearby each other. I thought of using BLE to detect proximity. So my prototype would like something like this with an additional LED. My intention is to program the BLE nano to broadcast itself as an ‘IoT lamp’ and simultaneously scan for nearby IoT lamps broadcasting themselves.
Let’s start with a basic question. Do I first need 2 sketches?
- 1: for the redbear nano to broadcast and scan and
- 2: for the electron that reads these values?
I have come across this discussion but it’s not apparent to me if there was a sketch loaded into the Adafruit Bluefruit LE SPI beforehand.
Secondly, since there is no particle library for Redbear BLE nano, I’ve been following particle’s firmware loading guide. The closest structure to the recommended I found in the redbear github repo was this but the ‘src’ folder is empty.