I am still a bit confused about the differences between setadvertising interval vs setinterval vs timeout.
Is my understanding of each of these examples correct?
A: This will send out a single, one shot blast of BLE advertisement of the battery, lasting only of 375 ms
C. This, with the press of BTN1, this will send out 5 sets of BLE battery advertising once a minute. Each of those five sets of BLE advertising blasts will last 375 ms. In this case I am not sure if I need XX and YY (see code). This is where I get confused.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I am still a bit confused about the differences between setadvertising interval vs setinterval vs timeout.
Is my understanding of each of these examples correct?
A: This will send out a single, one shot blast of BLE advertisement of the battery, lasting only of 375 ms
B: This will continuously send out a BLE advertisement of the battery once a minute, forever or until the Interval is cleared
C. This, with the press of BTN1, this will send out 5 sets of BLE battery advertising once a minute. Each of those five sets of BLE advertising blasts will last 375 ms. In this case I am not sure if I need XX and YY (see code). This is where I get confused.
Thanks