Are you using the up to date firmware? There was some odd issue with the one that the devices came flashed with where occasionally using setWatch would disable the button's pullup resistor, making it trigger too often. pinMode(BTN,"input_pulldown") fixes it, but new firmware would be better.
Advertising is ~700ms on 1v88 firmwares and ~350ms on 1v89 and later firmwares. BLE advertises on 3 separate frequency bands so if your phone/whatever is only listening on one it'd only pick a 1v88 firmware device up once every 2.1 seconds.
@MobiTech it should be fine to keep using sleep and wake - I don't see that causing any big problems.
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.
Are you using the up to date firmware? There was some odd issue with the one that the devices came flashed with where occasionally using
setWatch
would disable the button's pullup resistor, making it trigger too often.pinMode(BTN,"input_pulldown")
fixes it, but new firmware would be better.Advertising is ~700ms on 1v88 firmwares and ~350ms on 1v89 and later firmwares. BLE advertises on 3 separate frequency bands so if your phone/whatever is only listening on one it'd only pick a 1v88 firmware device up once every 2.1 seconds.
@MobiTech it should be fine to keep using sleep and wake - I don't see that causing any big problems.