Upgrading Toit to v2.0 #1139
Replies: 3 comments 13 replies
-
There are a few things that have changed between v1 and v2. PubsubThe biggest one, is the absence of pubsub. Toit v1 had a pubsub mechanism to send data from/to the device. In v2 we recommend to use MQTT instead. For small projects io.adafruit.com might be suitable, but there are many others. BLESimilarly, the BLE library was changed. Fortunately, the v1 implementation was relatively limited, and upgrading to v2 should be relatively straight-forward. If you encounter challenges just contact us on our Discord chat. Specification filesIn v1, deploying an application consisted of writing a specification file and then installing the application through that file. The specification file informed the system when it should execute the application. When no application was running and no connection to the server was needed, the system would go into deep sleep, saving power. In v2, with Jaguar, an application is installed with Here are some ways to get similar features to v1:
Others?If you see other changes, let me know, and I will try to update this post. |
Beta Was this translation helpful? Give feedback.
-
It should be understood that version v2 works exclusively with Jaguar and it's not possible to use the toit console command to update the sdk further? Anyway, I tried make this:
and I see that it's impossible to update toit via console to version v2. This is "not yet possible", ie. something temporary, or is it from now and forever: need to switch to using jag instead of toit? Or is there still some way to update the SDK to v2 and continue use toit? |
Beta Was this translation helpful? Give feedback.
-
I've had Toit installed for about a year now, and have been dabbling with on and off. I recently picked it up again, and found that a few examples from the docs don't work and discovered I'm using v1 still.
Is there an upgrade path?
Beta Was this translation helpful? Give feedback.
All reactions