Network

OPTION TCP SERVER PORT n

WEBMITE ONLY

Launches a TCP server on port n during every restart of the WebMite. Typically HTTP servers use port 80.

Use OPTION TCP SERVER PORT 0 to disable

When the server is running it can respond to up to MM.INFO(MAX CONNECTIONS)

OPTION TELNET CONSOLE OFF|ONLY|ON

WEBMITE ONLY

Configures the handling the console over Telnet.

  • ON = Console output sent to USB and Telnet
  • ONLY= Console output sent to Telnet only
  • OFF = Console output sent to USB only

OPTION TFTP OFF|ON

WEBMITE ONLY

Enables or disables the TFTP server. Default is on.

OPTION UDP SERVER PORT n

WEBMITE VERSION ONLY

Sets up a listening socket on the port specified. Any UDP datagrams received on that port will be processed and the contents saved in MM.MESSAGE$. The IP address of the sender will be stored in MM.ADDRESS$.

Note: If the UDP datagram is longer than 255 characters then any extra is discarded.

Use OPTION UDP SERVER PORT 0 to disable.

OPTION WEB MESSAGES ON/OFF

WEBMITE VERSION ONLY

Disable informational web messages when set to OFF. Default is ON

OPTION WIFI ssid$, passwd$,[name$] [,ipaddress$, mask$,gateway$]

WEBMITE VERSION ONLY

Configures the firmware to automatically connect to a WiFi network on restart.

ssid$ is the name of the network and password$ is the access password. Both are strings and if string constants are used they should be quoted.

Optionally a name for the device can be specified name$, otherwise a name is created from the unique device ID.

Optionally, a static IP address, IP mask, and gateway address can be specified as ipaddress$, mask$, gateway$.

OPTION WIFI "mysid","mypassword", "myPico", "192.168.1.111", "255.255.255.0", "192.168.1.1"