-
Hello, I am starting with Moddable SDK on ESP32. Looking at the examples ( But the only way to load the So, I was wondering if there is a manifest to include that would allow access to "net" without the Thank you Alberto |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Welcome! It sounds like you want to manage the Wi-Fi connection yourself, instead of having the Moddable SDK auto-connect at start-up. There are two ways to do that:
"modules": {
"~": [
"$(BUILD)/devices/esp32/setup/network"
],
...
}
This isn't quite correct. Including "manifest_net.json" is recommended as it is portable and maintained. The modules that need to include vary by platform and potentially over time as the implementation evolves. Including "manifest_net.json" should always work. But, you can merge the relevant information from "manifest_net.json" into your project's manifest instead, including only those modules that you need. This is more work than the two approaches described above. |
Beta Was this translation helpful? Give feedback.
Welcome!
It sounds like you want to manage the Wi-Fi connection yourself, instead of having the Moddable SDK auto-connect at start-up. There are two ways to do that:
ssid
andpassword
on the command line. To build, use a command line likemcconfig -d -m -p esp32
instead ofmcconfig -d -m -p esp32 ssid="foo" password=bar"
. Or, if you are defining the ssid and password in your project manifestsconfig
section, omit those. In both cases,network/setup
will see no credentials so it will not try to connect.setup/network
module from your project using exclude feature of the manifest (~
). In your projects manifest'smod…