Gecko OS 4 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.

Multiple variable configurations can be maintained in separate files. See Configuration and Setup, Variable Configuration .

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

When developing apps using the Gecko OS SDK , variables are referred to as settings and the settings Native API is used to read and write variables.

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
app.debug.auto_run Immediate
app.debug.ignore_settings Immediate
broadcast.data Immediate
broadcast.http.host Immediate
broadcast.interface Save and Reboot
broadcast.interval Save and Reboot
broadcast.udp.ip Immediate
bus.command.read_timeout Immediate
bus.command.rx_bufsize Save and Reboot
bus.command.write_check_enabled Immediate
bus.command.write_timeout Immediate
bus.data_bus Save and Reboot Safe Mode NVM Backup Lockable
bus.log_bus Save and Reboot Safe Mode NVM Backup Lockable
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
dms.cmd.enabled Immediate
dms.interface Fac Persist
dms.telemetry.adc_mask Immediate
dms.telemetry.data_mask Immediate
dms.telemetry.gpio_mask Immediate
dms.telemetry.interval Immediate
email.name_address Immediate
email.smtp.host Immediate
email.smtp.password Immediate
email.smtp.port Immediate
email.smtp.username Immediate
ethernet.auto_start.enabled Save and Reboot
ethernet.auto_start.retry_delay Save and Reboot
ethernet.dhcp.enabled Immediate
ethernet.dhcp.hostname Immediate
ethernet.dhcp.timeout Immediate
ethernet.network.status_gpio Immediate
ethernet.static.dns Immediate
ethernet.static.gateway Immediate
ethernet.static.ip Immediate
ethernet.static.netmask Immediate
gpio.alias Immediate
gpio.init Save and Reboot
gpio.sleep Save and Reboot
http.client.retries Immediate
http.client.retry_period Immediate
http.server.api_enabled Network Restart
http.server.auth_title Immediate
http.server.cors_origin Network Restart
http.server.denied_filename 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.password Network Restart
http.server.port Network Restart
http.server.root_filename Network Restart
http.server.tls_cert Network Restart
http.server.tls_enabled Network Restart
http.server.tls_key Network Restart
http.server.tls_log_clients Network Restart
http.server.tls_verify_peer Network Restart
http.server.username Network Restart
http.server.ws_connected_gpio Network Restart
http.server.ws_data_gpio 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
mdns.enabled Network Restart
mdns.interface Network Restart
mdns.name Network Restart
mdns.service Network Restart
mdns.ttl Network Restart
network.arp.lock_enabled Immediate
network.arp.table_size Immediate
network.buffer.control_size Immediate
network.buffer.rxtx_ratio Save and Reboot
network.buffer.size Save and Reboot
network.default_interface Immediate
network.tcp.delivery_type 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.interface Network Restart
remote_terminal.password Immediate
remote_terminal.port Network Restart
remote_terminal.timeout Immediate
setup.auto.cmd Save and Reboot
setup.gpio.cmd Immediate
setup.gpio.control_gpio Save and Reboot
setup.gpio.level Save and Reboot
setup.gpio.mode 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.dhcp_server.lease_time Immediate
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.rssi_average Save and Reboot
softap.ssid Network Restart
softap.static.gateway Network Restart
softap.static.ip Network Restart
softap.static.netmask Network Restart
spi.master.active_gpio Save and Reboot Safe Mode
spi.master.active_level Save and Reboot Safe Mode
stream.auto_close Immediate
system.activity.gpio Save and Reboot
system.activity.gpio_level Save and Reboot
system.adc.vref Immediate
system.bflash.cs_gpio Save and Reboot Fac Persist
system.bflash.port Save and Reboot Fac Persist
system.cmd.aux_bus Immediate
system.cmd.buffered Immediate Safe Mode NVM Backup
system.cmd.echo Immediate Safe Mode NVM Backup
system.cmd.gpio Save and Reboot
system.cmd.header_enabled Immediate Safe Mode NVM Backup
system.cmd.prompt_enabled Immediate Safe Mode NVM Backup
system.cmd.timestamp Immediate Safe Mode NVM Backup
system.factory_reset.gpio Immediate Fac Persist
system.factory_reset.level Save and Reboot Fac Persist
system.indicator.gpio Save and Reboot
system.indicator.state Save and Reboot
system.interface.ethernet_enabled Fac Persist
system.interface.wifi_enabled Fac Persist
system.msg Immediate
system.oob.event_mask Immediate
system.oob.gpio Save and Reboot
system.oob.gpio_level Immediate
system.oob.rising_edge_mask Immediate
system.powersave.mode Save and Reboot
system.print_level Immediate Safe Mode NVM Backup
system.safemode.disabled Save and Reboot Safe Mode
system.safemode.status Safe Mode
system.security_key Immediate
system.uuid Safe Mode
system.variable_lock Immediate
system.version Safe Mode
tcp.client.auto_interface Save and Reboot
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.keepalive.enabled Immediate NVM Backup
tcp.keepalive.initial_timeout Immediate NVM Backup
tcp.keepalive.retry_count Immediate NVM Backup
tcp.keepalive.retry_timeout Immediate NVM Backup
tcp.server.auto_interface Network Restart
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.max_clients Network Restart
tcp.server.port Network Restart
tcp.server.tls_cert Network Restart
tcp.server.tls_enabled Network Restart
tcp.server.tls_key Network Restart
tcp.server.tls_verify_peer 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_retry Immediate
udp.client.auto_start Network Restart
udp.client.remote_host Immediate
udp.client.remote_port Immediate
udp.server.auto_interface Network Restart
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.antenna.select Immediate Safe Mode NVM Backup
wlan.auto_join.enabled Network Restart
wlan.auto_join.retries Save and Reboot
wlan.auto_join.retry_delay Save and Reboot
wlan.bssid Network Restart
wlan.dhcp.cache_enabled Immediate
wlan.dhcp.enabled Network Restart Safe Mode NVM Backup
wlan.dhcp.hostname Network Restart
wlan.dhcp.timeout Network Restart Safe Mode NVM Backup
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.multicast.address Immediate
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.network.status_gpio Save and Reboot
wlan.passkey Network Restart Safe Mode NVM Backup
wlan.powersave.listen_interval Save and Reboot
wlan.powersave.mode Save and Reboot
wlan.rate.protocol Network Restart Safe Mode NVM Backup
wlan.rate.transmit Network Restart Safe Mode NVM Backup
wlan.roam.threshold Network Restart Safe Mode NVM Backup
wlan.rssi_average Save and Reboot
wlan.scan.active_dwell Network Restart Safe Mode NVM Backup
wlan.scan.channel_mask Network Restart Safe Mode NVM Backup
wlan.scan.home_dwell Network Restart Safe Mode NVM Backup
wlan.scan.num_probes Network Restart Safe Mode NVM Backup
wlan.scan.passive_dwell Network Restart Safe Mode NVM Backup
wlan.scan.retries Network Restart Safe Mode NVM Backup
wlan.scan.type Network Restart Safe Mode NVM Backup
wlan.security 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