BLE scan and advertising parallel? #3887
Replies: 1 comment
-
Posted at 2021-11-17 by @gfwilliams Hi - yes, BLE broadcast while scanning should 'just work' - however Espruino will only broadcast via BLE when you're disconnected from it, so that might be the issue you're hitting? Posted at 2021-11-17 by kreativmonkey @gfwilliams yes that off course fixed the issue i have ;-). I've changed my code over the day it works like aspactad.
Now i have two new problems. First of all, after starting and stopping, i can't connect to the Puck-js scince i'm pull out the battery and plug it in again. ~~The second problem is the advertising interval. If i change the interval to somthing under 100ms i don't reseive any packages from the device. ~~ [Edit] Answere for the second Question: Posted at 2021-11-18 by @gfwilliams
Looks like you set |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-11-17 by kreativmonkey
Is it possible to scan and advertise at the same time? I would like to do a setup with 3 beacon. Each beacon should scan for the other two beacons and save the current rssi. In the next Advertising package the beacon should send the last received rssi from the other two beacons. I'm new on programming with JavaScript. My current Codebase shows this:
Beta Was this translation helpful? Give feedback.
All reactions