Espruine Flag Raiser app with Puck

Posted on
  • Hello!
    TLDR: Is Flag Raiser app supposed to work with the Puck v2?

    I got Web BT working with my Puck.js v2 (i.e send LED on/off code when clicking on buttons in Chromium).

    I would like to do the same from Bangle.js so I picked Flag Raiser app to modify it (it was doing nothing to the puck).

    I looked at Web BT puck.js library and it seems to have different service GUIDS
    var NORDIC_SERVICE = "6e400001-b5a3-f393-e0a9-e50e24dcca9e";
    var NORDIC_TX = "6e400002-b5a3-f393-e0a9-e50e24dcca9e";
    var NORDIC_RX = "6e400003-b5a3-f393-e0a9-e50e24dcca9e";
    but when I change Flag Raiser code and use the new address then

    Uncaught Error: Function "" not found!
     at line 17 col 611
    ...Done!");busy=false;redraw();}).catch(function(e){console.log("ERROR",e);bus...
                                                 ^
    in function called from system
    Uncaught Error: Unhandled promise rejection: No device found matching filters
    >
    

    What does that mean? Tips? Suggestions?
    M

  • Hi - I'll add some proper docs to the flag raiser app that describe how to use it properly. It uses a custom UUID that requires some code on the Puck itself.

    I'll stick a link to it here when it's done.

    That's an odd error message though - I think the main one is No device found matching filters because it was probably searching for a device with a different name and didn't find it.

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

Espruine Flag Raiser app with Puck

Posted by Avatar for Michaelnik @Michaelnik

Actions