writeValue by itself shouldn't cause a disconnect, so you should be able to stay connected and just keep writing to it - you just have to have saved characteristic to a variable that you can access once you've left that last part of the promise.
If you can't see advertisements then it'll be because you're connected - so you should just be able to keep writing to the characteristic and you're sorted.
I guess it's possible that the camera wants you to have subscribed to indications on the other characteristic before it'll perform the command?
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.
Great! That sounds really promising!
Yes! Just delete:
writeValue
by itself shouldn't cause a disconnect, so you should be able to stay connected and just keep writing to it - you just have to have savedcharacteristic
to a variable that you can access once you've left that last part of the promise.If you can't see advertisements then it'll be because you're connected - so you should just be able to keep writing to the characteristic and you're sorted.
I guess it's possible that the camera wants you to have subscribed to indications on the other characteristic before it'll perform the command?