Mongoose OS is an operating system for low-power connected microcontrollers.
It comes with the management tool
mos which is a developer's swiss army knife. It can build & flash the firmware and manage the device. It supports both a command line mode (CLI) and a web-based UI.
The recent release of
mos tool added an ability to share the code that is currently running on a device, together with the key information about running firmware (architecture, build version). The goal is to help developers share their ideas and also help to debug issues.
How to use code sharing
Make sure you're running the latest version of
To update to the latest version, start your terminal and type:
mos without arguments to start a Web UI:
Make sure the device you are working on is connected to the USB port. Switch to the prototyping mode, click on
init.js and make your edits. When you are ready to share, just click on a green button "Share the file":
Enter your name, snippet title and click 'Publish...' button:
mos tool publishes the snippet to the URL that is generated. Click on it to see the snippet.
Your code is now visible to everyone! You can reference it on Mongoose OS forum or on social media.
Let us know if you have any comments/questions!