You are reading a single comment by @fanoush and its replies. Click here to read the full conversation.
  • I just tested with device I just have here - nrf52840 dongle and indeed have some issues with this if I connect over bluetooth. However when I connect over USB serial it worked. Can you try over serial console without using bluetooth console at all?
    this was over serial

    >var d=0
    =0
    > NRF.disconnect();NRF.restart(function(){­d=1;})
    >d
    =1
    

    when tried bluetooth

    >var d=0
    =0
    Disconnected from Web Bluetooth, Dongle c56e
    >NRF.disconnect();NRF.restart(function()­{d=1;})
    Found NRF52840Dongle, 2v08.156
    >
    Connected to Dongle c56e
    >d
    =0
    

    I also tried without NRF.Disconnect - you need to disconenct after calling it, it prints

    >NRF.restart(function(){d=1;})
    BLE Connected, queueing BLE restart for later
    =undefined
    

    and should restart later but d is still 0 after reconnecting.
    Strange, this worked previously. Not 100%, sometimes I saw this too, but mostly it worked fine. If this happened previously, after E.reboot() it worked.

About

Avatar for fanoush @fanoush started