Want to stay informed? Share your e-mail address for news:

Click here for our GitHub Repository

Node.js for Microcontrollers

The following settings can be set using lowsync, or graphically from within the neonious one IDE. Settings specific to the neonious one IDE editor are not listed, please take a look at the Settings pane of the IDE for this.

Name Type
code.auto_start Boolean
If set to true, user program starts on microcontroller boot.
code.auto_save_on_start Boolean
If set to true, user program restarts on a fatal exception. Enable this on production systems. If set to false, the user program is paused and, if using the neonious one, you can then check where the program crashed, the contents of the variables and so on before restarting the program manually.
code.watchdog_mode String
"off" if the watchdog is disabled, "software" if the JavaScript/TypeScript engine shall handle the watchdog and restarts the program if it no longer responds, "hardware" if the ESP32 hardware watchdog shall be used. Use "software" in testing mode, so you get an error message logged into the console, and "hardware" in production mode where you want to be sure that a restart happens in any case.
code.watchdog_timeout_secs Integer, in seconds/td>
The time which has to pass since the last time the watchdog was kicked till the watchdog times out and restarts the program (software mode) or the whole device (hardware mode).
code.kick_watchdog_event_loop Boolean
If set to true, the watchdog is automatically kicked whenever the user program returns to the event loop and there is no event to handle. If set to false, you have to kick via the kickWatchdog method of the lowsys module.
code.console_kb Integer, in KB
Specifies how many console messages should be saved in Flash.
code.main String
Absolute path to the user program's main JavaScript file
eth.enabled Boolean
Only on neonious one. If set to true, the Ethernet interface is enabled.
eth.dhcp String
Only on neonious one. "client", "server" or "none"
eth.dhcps_min String, in Format X.X.X.X
Only on neonious one. The lowest IP address the DHCP server shall give to clients.
eth.dhcps_max String, in Format X.X.X.X
Only on neonious one. The highest IP address the DHCP server shall give to clients.
eth.static_ip String, in Format X.X.X.X
Only on neonious one. The IP adress to use, only used if eth.dhcp is not set to "client".
eth.static_net String, in Format X.X.X.X
Only on neonious one. The network netmask, only used if eth.dhcp is not set to "client".
eth.static_gw String, in Format X.X.X.X
Only on neonious one. The gateway IP adress, only used if eth.dhcp is not set to "client". Can be set to "" if no gateway shall be used.
network.dns String, in Format X.X.X.X[, X.X.X.X]
The IP addresses of the DNS servers to use.
network.time String
The IP or domain name of the time server to use.
network.track Boolean
Only on neonious one. If set to true, the device's IP addresses can be tracked on FindMyNeonious.
sdcard.enabled Boolean
Shall the SD card be mounted?
sdcard.mode String
"spi" - Most compatible. Pins configurable
"sd1line" - Uses pins 2 (DATA0), 13 (DATA3), 14 (CLK), 15 (CMD). Not available on neonious one
"sd4line" - Fastest mode, uses pins 2 (DATA0), 4 (DATA1), 12 (DATA2), 13 (DATA3), 14 (CLK), 15 (CMD). Not available on neonious one
sdcard.mount String
The absolute path under which the SD card shall be mounted, starting with /.
sdcard.pinCS Integer
Pin number for CS in SPI mode
sdcard.pinMISO Integer
Pin number for MISO in SPI mode
sdcard.pinMOSI Integer
Pin number for MOSI in SPI mode
sdcard.pinSCLK Integer
Pin number for SCLK in SPI mode
sdcard.pinWP Integer (optional)
Pin number for Write Protect (WP). If this is used, writes to write protected SD cards will fail. Set to null to remove.
sdcard.pinCD Integer (optional)
Pin number for Card Detect (CD). Set to null to remove.
web.http_enabled Boolean
If set to true, the HTTP port for the neonious one IDE and communicating with lowsync is enabled. Usually only makes sense on the neonious one, as lowsync usually uses HTTPS.
web.http Integer
The port used for the neonious one IDE and communicating with lowsync via HTTP
web.https_enabled Boolean
If set to true, the HTTPS port for the neonious one IDE and communicating with lowsync is enabled.
web.https Integer
The port used for the neonious one IDE and communicating with lowsync via HTTPS
web.redirect_to_https Boolean
If set to true, the HTTP port redirects all traffic to the HTTPS port.
web.cert_and_key_path_enabled Boolean
If set to true, the given certificate and key are used for HTTPS. If set to false, the built-in certificate is used.
web.cert_path String
The absolute path to the certificate file. Only used if web.cert_and_key_path_enabled is true.
web.cert_key_path String
The absolute path to the certificate key file. Only used if web.cert_and_key_path_enabled is true.
web.cert_ca_path_enabled Boolean
If set to true, the given ca certificate is used for HTTPS. If set to false, the built-in certificate is used.
web.cert_ca_path String
The absolute path to the ca certificate file. Only used if web.cert_and_key_path_enabled is true.
wifi.enabled Boolean
If set to true, the Wifi interface is enabled.
wifi.mode String
"ap" to create access point, or "station" to connect to access point. Warning: do not forget to set wifi.dhcp to client when connecting to an access point, otherwise you might spam your access point!
wifi.ssid String
The SSID of the Wifi to connect to
wifi.password String
The password of the Wifi to connect to. Can be "" if the Wifi is unprotected.
wifi.dhcp String
"client", "server" or "none"
wifi.dhcps_min String, in Format X.X.X.X
The lowest IP address the DHCP server shall give to clients.
wifi.dhcps_max String, in Format X.X.X.X
The highest IP address the DHCP server shall give to clients.
wifi.static_ip String, in Format X.X.X.X
The IP adress to use, only used if wifi.dhcp is not set to "client".
wifi.static_net String, in Format X.X.X.X
The network netmask, only used if wifi.dhcp is not set to "client".
wifi.static_gw String, in Format X.X.X.X
The gateway IP adress, only used if wifi.dhcp is not set to "client". Can be set to "" if no gateway shall be used.