I am using this plugin: https://github.com/jguix/Cordova-Flic
console.log(‘Flic getKnownButtons succeeded’);
console.log('Flic known buttons: ’ + JSON.stringify(buttons));
console.log('Flic getKnownButtons failed: ’ + message);
How would one get the buttons variable out of the success function from the example above. I assume this is a type of promise as I can read it inside the function but if I try to save it to an external variable it comes out empty.