Puck.js should just keep advertising what you ask it to forever - so a duration doesn't really make sense. If you want to change what is advertised after some period then you could just use setTimeout or setInterval to call setAdvertising again?
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.
Puck.js should just keep advertising what you ask it to forever - so a duration doesn't really make sense. If you want to change what is advertised after some period then you could just use setTimeout or setInterval to call setAdvertising again?