Skip to content

VSCode extension for Mongoose OS with mos-native support

Notifications You must be signed in to change notification settings

kotelnikov/mongoose-os-ide-native

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongoose OS IDE with mos-native support

This is a modification of Mongoose OS IDE extension for Visual Studio Code. The difference between the original one is using mos-native script for building ESP32 applications on MacOS much faster without using a Docker. Hope it saves your time!

Also in modified extension:

  1. Hidden option Remote build, because of false clicking sometimes.
  2. There is a feature for redefining boards list by adding the file boards.json to the root directory of your Mongoose OS project. In case of missing file boards.json at the root directory or incorrect file format the extension will show default boards list defined in the original extension. This feature gives you a possibility to define your personal list of boards with custom build vars. Example of the file boards.json is shown below:
{
  "ESP32 revision v1": "--platform esp32 --build-var BOARD=revision_v1",
  "ESP32 revision v2": "--platform esp32 --build-var BOARD=revision_v2",
  "ESP32": "--platform esp32",
  "ESP8266": "--platform esp8266"
}

If you found this repository useful for building Mongoose OS applications, please give this repository a star! ⭐⭐⭐

Installation

Uninstall original extension from Visual Studio Code. Download precompiled extension file mongoose-os-ide-0.7.0.vsix and install it manually, details here: Install extensions from a VSIX. Install mos-native script. Next add "MOS_NATIVE" environment variable as a path to mos_build_local.sh script. If environment variable "MOS_NATIVE" not set the extension works as original one except hidden Remote build option.

Features

  • Building applications for ESP32 on MacOS in a fraction of time without using a Docker
  • Run any mos command: Ctrl+.
  • Open device serial log console: toggle "Output" panel (Shift+Ctrl+U / Shift+Cmd+U) and select "Mongoose OS" output in a dropdown
  • To build firmware, open app directory in VSCode, select board and run build. Note: mos tool executes in the first workspace's directory, so only that directory can be built, and it must be a Mongoose firmware directory with the mos.yml file
  • To flash firmware, select port and run flash
  • To configure wifi, run wifi NETWORK PASSWORD
  • Edit files on a device: select port and click on a file to edit and save
  • Edit device config as a file: select port and click on "Device configuration"
  • C/C++ and JS API autocompletions.

Requirements

About

VSCode extension for Mongoose OS with mos-native support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%