I’m new to Mender so please forgive if this is a FAQ. I’m integrating with a CM4 board using Yocto.
The board is part of an audio product which is not connected to the internet, so we will be using Mender in standalone mode. Firmware updates will be sent over the OCA protocol. Is there a programmatic C++ interface to mender-update
or is my best bet to stash the update image and spawn mender-update
in a new process?
Ah, I see this may have been answered in 2019 here. Any changes in the intervening years? What I’m after is not notifications about state transitions, but rather being able to drive the update client from a C++ (well, Swift) daemon.
Hi @lukehatpadl,
Nope, sorry. The state of affairs still is that the client is meant to be used through the CLI API. However, what does “drive the client” mean specifically? Which functionality do you need to control?
Greets,
Josef
1 Like
Thanks @TheYoctoJester – I didn’t want to do anything with the mender-update
client that can’t be done with the CLI, I just hoped to have a programmatic interface that I could more easily integrate with our control plane daemon. I ended up just writing a Swift wrapper here.
Hi @lukehatpadl,
That’s great to hear! Out of curiousity, is said wrapper public? It might be useful to others, even if it is a bit niche.
Greetz,
Josef
1 Like
Yup, just follow the link above. WIP Swift 6 layer is here, too (OT).
1 Like