• 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

About

Avatar for fanoush @fanoush started