Gecko OS Variables

This page provides a list of Gecko OS variables with a full description of the function of each variable together with example usage.

Variables are cached in volatile RAM and must be saved to non-volatile flash memory to persist between reboots. To save variables to flash, use the save command. Some variables impact the operation of the entire system, wake and sleep timers for example. A save and reboot is required before new settings for these types of variables take effect.

Variable settings can be loaded using the load command.

The get and set Command API functions are used to read and write Gecko OS variables respectively.

Shortcuts

A shortcut is assigned to each variable. The format for shortcuts is shown in the following table. The shortcut is a hybrid of the first two characters of the first word of the variable name, plus (typically) the first character of the second word (if a second word exists), plus (typically) the first character of the third word of the variable name (if a third word exists). Each of these characters is separated by a space character. In some instances, it was not possible to use the first letter of the second or third word in the variable name, in these cases another letter has been somewhat arbitrarily chosen.

Variable Name Shortcut
Template first_word.second_word.third_word fi s t
Example 1 time.uptime ti u
Example 2 wlan.scan.retries wl s r

Documentation Format

Many Gecko OS responses shown in the examples on this page were captured with system.print_level = 0, and system.cmd.header_enabled = 1. These machine friendly settings make it easy for a host MCU to parse responses by examining response headers . Documentation for each variable is provided in the format shown below.

variable

Abbreviation

var

Access

get/set

Description

A description of the function of the variable.

Arguments

A full list of mandatory and optional arguments.

Default

The factory reset default value.

Get example

An example of how to read the variable, including response codes.

Set example

An example of how to write the variable, including response codes (for writeable variables).

NOTE! Don't forget to check out command navigation tips to make it easier to find and type specific variable names.

List of Variables

Variable Properties

The table below indicates properties of variables:

Variable Immediate UART Update Network Restart Setup Restart Save and Reboot Safe Mode NVM Backup Lockable Fac Persist
broadcast.data Immediate
broadcast.http.host Immediate
broadcast.interface Save and Reboot
broadcast.interval Save and Reboot
broadcast.udp.ip Immediate
bus.mode Save and Reboot Safe Mode NVM Backup Lockable
bus.stream.cmd_gpio Save and Reboot
bus.stream.cmd_seq Save and Reboot
bus.stream.flush_count Save and Reboot
bus.stream.flush_time Save and Reboot
bus.stream.flush_time_reset Save and Reboot
gpio.init Save and Reboot
http.server.api_enabled Network Restart
http.server.cors_origin Network Restart
http.server.enabled Network Restart
http.server.interface Network Restart
http.server.max_clients Network Restart
http.server.notfound_filename Network Restart
http.server.port Network Restart
http.server.root_filename Network Restart
ioconn.control_gpio Save and Reboot
ioconn.enabled Save and Reboot
ioconn.local_port Immediate
ioconn.protocol Immediate
ioconn.remote_host Immediate
ioconn.remote_port Immediate
ioconn.status_gpio Save and Reboot
network.default_interface Immediate
network.tls.ca_cert Immediate Safe Mode
network.tls.client_cert Immediate
network.tls.client_key Immediate
network.tls.version Immediate
ntp.enabled Save and Reboot
ntp.interface Save and Reboot
ntp.interval Save and Reboot
ntp.server Save and Reboot
remote_terminal.enabled Network Restart
remote_terminal.password Immediate
remote_terminal.port Network Restart
remote_terminal.timeout Immediate
setup.gpio.control_gpio Save and Reboot
setup.web.idle_timeout Setup Restart
setup.web.passkey Setup Restart
setup.web.root_filename Setup Restart
setup.web.ssid Setup Restart
setup.web.url Setup Restart
softap.auto_start Network Restart
softap.channel Network Restart
softap.dhcp_server.enabled Network Restart
softap.dns_server.enabled Network Restart
softap.dns_server.url Network Restart
softap.hide_ssid Network Restart
softap.idle_timeout Network Restart
softap.max_clients Immediate
softap.passkey Network Restart
softap.ssid Network Restart
softap.static.gateway Network Restart
softap.static.ip Network Restart
softap.static.netmask Network Restart
system.cmd.echo Immediate Safe Mode NVM Backup
system.cmd.header_enabled Immediate Safe Mode NVM Backup
system.cmd.prompt_enabled Immediate Safe Mode NVM Backup
system.gotosleep.timeout Save and Reboot
system.indicator.gpio Save and Reboot
system.indicator.state Save and Reboot
system.oob.event_mask Immediate
system.oob.gpio Save and Reboot
system.oob.gpio_level Immediate
system.oob.rising_edge_mask Immediate
system.print_level Immediate Safe Mode NVM Backup
system.safemode.disabled Save and Reboot Safe Mode
system.safemode.status Safe Mode
system.uuid Safe Mode
system.version Safe Mode
system.wakeup.timeout Immediate
tcp.client.auto_retries Save and Reboot
tcp.client.auto_start Save and Reboot
tcp.client.connect_timeout Immediate Safe Mode NVM Backup
tcp.client.local_port Immediate Safe Mode NVM Backup
tcp.client.remote_host Immediate
tcp.client.remote_port Immediate
tcp.client.retries Immediate Safe Mode NVM Backup
tcp.client.retry_period Immediate Safe Mode NVM Backup
tcp.client.tls_enabled Immediate
tcp.server.auto_start Network Restart
tcp.server.connected_gpio Network Restart
tcp.server.data_gpio Network Restart
tcp.server.idle_timeout Network Restart
tcp.server.port Network Restart
time.rtc Immediate
time.zone Immediate
uart.baud UART Update Save and Reboot Safe Mode NVM Backup Lockable
uart.data UART Update Save and Reboot Safe Mode NVM Backup Lockable
uart.flow UART Update Save and Reboot Safe Mode NVM Backup Lockable
uart.parity UART Update Save and Reboot Safe Mode NVM Backup Lockable
uart.stop UART Update Save and Reboot Safe Mode NVM Backup Lockable
udp.client.auto_interface Network Restart
udp.client.auto_start Network Restart
udp.client.remote_host Immediate
udp.client.remote_port Immediate
udp.server.auto_start Network Restart
udp.server.data_gpio Network Restart
udp.server.lock_client Network Restart
udp.server.port Network Restart
udp.server.remote_host Network Restart
udp.server.remote_port Network Restart
wlan.auto_join.enabled Network Restart
wlan.auto_join.retries Save and Reboot
wlan.auto_join.retry_delay Save and Reboot
wlan.dhcp.enabled Network Restart Safe Mode NVM Backup
wlan.dhcp.hostname Network Restart
wlan.hide_passkey Immediate Safe Mode NVM Backup
wlan.join.retries Network Restart Safe Mode NVM Backup
wlan.join.timeout Save and Reboot Safe Mode NVM Backup
wlan.mac Safe Mode
wlan.network.dns Safe Mode
wlan.network.gateway Safe Mode
wlan.network.ip Safe Mode
wlan.network.netmask Safe Mode
wlan.network.status Safe Mode
wlan.passkey Network Restart Safe Mode NVM Backup
wlan.rate.protocol Network Restart Safe Mode NVM Backup
wlan.ssid Network Restart Safe Mode NVM Backup
wlan.static.dns Network Restart Safe Mode NVM Backup
wlan.static.gateway Network Restart Safe Mode NVM Backup
wlan.static.ip Network Restart Safe Mode NVM Backup
wlan.static.netmask Network Restart Safe Mode NVM Backup
wlan.tx_power Immediate Safe Mode NVM Backup