Connect/Disconnect Events

Posted on
  • Hey i'm writing an application for controlling a MDBT42q module but i'm having issues with the connect disconnect events.

    I want to do a Bangle.buzz on connect/disconnect but they never fire.

    This should fire once i disconnect but no luck.
    NRF.on('disconnect', function() {Bangle.buzz()})

    How could i debug this further ?

  • If you are connnecting from the Bangle to the MDBT42q, the event will be received by:

    
    gatt.device.on('gattserverdisconnected',­...);
    
    

    NRF.on(‘disconnect’,...) will work on the module - with no Bangle.buzz() of course.

  • @jeffmer Ah.. Thank you !

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Connect/Disconnect Events

Posted by Avatar for Gustav @Gustav

Actions