advertising is core feature of BLE, you cannot connect to device if it is not advertising so it basically runs all the time with some interval between packets unless bluetooth is off or device is connected. so '5 sets of advertising once a minute' is not how advertising and BLE works.
NRF.setAdvertising is used to change advertising packet data, if you don't call it again, same data packet is advertised repeatedly with preset interval.
setInterval is standard javascript method to call something repeatedly, setTimeout is same but runs only once
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.
advertising is core feature of BLE, you cannot connect to device if it is not advertising so it basically runs all the time with some interval between packets unless bluetooth is off or device is connected. so '5 sets of advertising once a minute' is not how advertising and BLE works.
NRF.setAdvertising is used to change advertising packet data, if you don't call it again, same data packet is advertised repeatedly with preset interval.
setInterval is standard javascript method to call something repeatedly, setTimeout is same but runs only once