You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Yeah, that's a tricky one. I'd maybe just do:

    exports.initialise = function(descriptor_callback, send_hid_callback) { 
     ...
    }
    

    Then you can do:

    function send_hid_callback(data) {
    Serial.write(
        0xFD,                // indicates raw hid report
        0x06,                 // bLength
        0x01,                 // bDescriptorType - constant ( String assigned by USB )
        data
    );
    }
    

    for the RN-42?

About

Avatar for Gordon @Gordon started