Setup

setup.gpio.control_gpio

Abbreviation

se g g

Access

get/set

Description

Asserting the GPIO specified by setup.gpio.control_gpio for 3 seconds during and immediately after reset causes the Gecko OS command setup_web to run. A value of -1 disables this feature.

Arguments

<GPIO#>

Default

The default GPIO is platform dependent and is typically mapped
to button 2 on evaluation boards (the wake button)

Properties

Platforms

Get example

> get se g g
R000003
3

Set example

> set se g g 12
R000008
Set OK

setup.web.idle_timeout

Abbreviation

se w i

Access

get/set

Description

If no client connects to the web setup webpage after setup.web.idle_timeout seconds, web setup times out and is terminated. Upon timeout, if a wlan.ssid has previously been set, Gecko OS attempts to re-join the WLAN network.

setup.web.idle_timeout is disabled when a client requests the root index of the webapp.

Arguments

<seconds> Note: Setting this variable to 0 disables web setup idle timeout.

Default

300 (5 minutes)

Properties

Platforms

Get example

> get setup.web.idle_timeout
R000005
300

Set example

> set se w i 0
R000008
Set OK

setup.web.passkey

Abbreviation

se w p

Access

get/set

Description

The softAP WPA2-AES passphrase used for web setup, must be between 8-32 characters in length.

Arguments

<passphrase>

Default

password

Properties

Platforms

Get example

> get we p
R000010
password

Set example

> set we p my-new-password
R000008
Set OK

setup.web.root_filename

Abbreviation

se w r

Access

get/set

Description

The root filename of the web setup: in response to a request for http://setup.com, the web server returns http://setup.com/<root_filename>.

Note: The file must be a supported type for it to appear correctly in the browser. The type is determined by the file extension. The following types are supported:

ExtensionMIME
.csstext/css
.jsapplication/javascript
.html/.htmtext/html
.pngimage/png
.icoimage/x-icon
.gifimage/gif
.jpg/.jpegimage/jpeg
.txttext/plain

Arguments

<root_filename>

Default

/setup/index.html

Properties

Platforms

Get example

> get se w r
/setup/index.html

Set example

> set se w r home.htm
R000008
Set OK

setup.web.ssid

Abbreviation

se w s

Access

get/set

Description

The softAP SSID used for web setup. If the SSID ends in a # character, the last three hex characters of the WLAN MAC address replace the #.

For example, if the device MAC address is 4C:55:CC:10:26:05, and setup.web.ssid is set to Gecko OS Web Setup #, then SSID becomes: Gecko OS Web Setup 605.

Arguments

<ssid>

Default

Gecko OS Web Setup #

Properties

Platforms

Get example

> get we s
R000021
Gecko OS Web Setup #

Set example

> set we s "This is my softAP!"
R000012
Set OK

setup.web.url

Abbreviation

se w u

Access

get/set

Description

A comma separated list of host names the webserver responds to in web setup mode.

Arguments

<url list>

Default

setup.com,www.setup.com

Properties

Platforms

Get example

> get we u
R000057
setup.com,www.setup.com

Set example

> set we u setup,start,lets.go,hello
R000008
Set OK