Skip to content

Provisioning different devices #1330

Answered by kasperl
hgschmie asked this question in Q&A
Discussion options

You must be logged in to vote

Assets should work well for this case. You can create the firmware.envelope file and flash it onto a device. Once you install a container on the device using jag container install or run code there using jag run you can add the device specific assets.

You create the assets file using sdk/tools/assets like described here: https://github.com/toitlang/toit#adding-container-assets. You can then add the assets when you run like this:

jag run --assets=device.assets program.toit

From within program.toit you should now be able to see the assets by importing system.assets and calling assets.decode.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hgschmie
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants