You are reading a single comment by @fanoush and its replies.
Click here to read the full conversation.
-
I'm not sure what an active scan is.
I tried to explain what it is in post #17 but no matter what exactly it is, you have used it if you added
active:true
to NRF. findDevices or NRF.setScan as an extra option. Default is false so you probably did not use it.
Thanks Gordon,
I'm not sure what an active scan is. I was using a slightly modified version of the script in my original question.
The button, when pressed, makes a connection to the device, reads some data and sends some data. Since I'm doing it in a promise based approach, it takes a while for the data to be read / written. It's super quick in the app (around 1s or so) but takes around 30s on the Puck. I'm using LEDs to help signify that "something is happening". Will check to ensure I'm reusing objects as much as possible, pretty sure I am though.