• Hi!
    I have uploaded a script which set data on button click.
    Here is the code :

    echo(0);\n
    clearInterval();
    clearWatch();
    var presses = 0;\n
    setWatch(function () {\n
        if(presses > 100) {
            presses = 0;
        }\n
        presses++;\n
        LED2.reset();\n
        LED3.reset();\n
        NRF.setAdvertising({}, {
            interval: 200,
            manufacturer: 0x0590,
            manufacturerData: [presses]
        });\n
    }, BTN, {
        edge: 'falling',
        repeat: 1,
        debounce: 0
    })\n
    LED1.set()\n
    setTimeout(function () {
        LED1.reset()
    }, 2000)\n
    save();
    
    

    It works fine but sometimes when i click the button.. noble.js does not scan any changed data.
    However the data value has changed but not advertised. ( it means the setWatch function is working )
    I think it's a problem in puck.js script updated.. maybe NRF.setAdvertising ?

    It is a major problem for our application. Do you have any idea of what could cause this issue ?
    Thank you !

About

Avatar for Christof550 @Christof550 started