Thank you very much Gordon, I have a 10 minute interval and even with the Bluetooth.setConsole(true) in onInit, the problem exists, is there any limitation on espruino about the time of intervals, etc?
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.
You might want to take a look at http://www.espruino.com/Troubleshooting+BLE#my-code-works-when-i-m-connected-via-bluetooth-but-stops-when-i-disconnect
Bluetooth.setConsole(true)
inonInit
should fix it for you though.