This version triggers all of the console log stages and doesn't return any errors, although it neither invokes the PIN pop up on the camera screen or executes the function.
The second version of the function looks like this
Again, this one does not invoke the PIN pop up on the camera but it does produce the following errors in the console at the "Writing To Characteristic" point
Writing To Characteristic
Uncaught Error: Unhandled promise rejection: Error: BLE task 6 is already in progress
Uncaught InternalError: BLE task completed that wasn't scheduled (3/0)
I haven't included the additional passkeyRequest function (I was just trying to get the PIN pop-up to invoke on the camera for now) but I'm guessing that the second variation of the function is possibly the one that is more likely to be in the right direction for adding it?
Again, I've got to apologise for my lack of understanding of how and where to put the passkeyRequest function example that you gave me but any example within one of my functions would be greatly appreciated.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks for your help with this and again I have to apologise for being less than switched on in trying to make it work.
I've made two versions of a function to write a value to the camera which I trigger with two of the buttons on the Pixl.
This is the first one
This version triggers all of the console log stages and doesn't return any errors, although it neither invokes the PIN pop up on the camera screen or executes the function.
The second version of the function looks like this
Again, this one does not invoke the PIN pop up on the camera but it does produce the following errors in the console at the "Writing To Characteristic" point
I haven't included the additional passkeyRequest function (I was just trying to get the PIN pop-up to invoke on the camera for now) but I'm guessing that the second variation of the function is possibly the one that is more likely to be in the right direction for adding it?
Again, I've got to apologise for my lack of understanding of how and where to put the passkeyRequest function example that you gave me but any example within one of my functions would be greatly appreciated.