How is global.GB working?

Posted on
  • Hi,

    the widget gbridge registers the global.GB function. Where is this function called?

    Cheers,
    Simon

  • This sort-of explains it: http://www.espruino.com/Gadgetbridge

    Basically Bangle.js provides a REPL over Bluetooth (basically the left-hand side of the IDE). Gadgetbridge connects to that and sends the command to execute GB directly. It's like a poor man's remote procedure call.

    The nice side-effect is it's easy to test because you can just manually call the function using the left-hand side of the IDE

  • Thank you!

About

How is global.GB working?

Posted by Avatar for user111002 @user111002

Actions