• Great! That sounds really promising!

    Yes! Just delete:

    gatt.disconnect();
    

    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?

About

Avatar for Gordon @Gordon started