WiFi Hardware Block
Use the Wifi hardware block to connect your stack to your local LAN network and the internet if it is connected to your router. In your Stackbuilder blueprint, drag and drop the Wifi block from the Hardware tab into your blueprint. Then click once on the Wifi block to select it. Use the Property Editor in the bottom right to set the ’N’ property for LAN network name (SSID), and the ‘P’ property for the password.
Set Properties for Wifi block
Click on the first empty row's first column under "PROPERTY" and type N (for Network name), hit Tab to go to the next column ("Default Value") and type in the SSID of the wifi network you want to connect to, say for example "mynetwork" (type the quotes as well). Hit tab twice to move on to the next row. Now type P (for password), hit Tab to go to the next column and type in the password for the wifi network, say for example "mynetpass" (type the quotes as well) and hit tab twice to move on to the next row.
Use other blocks, like “Interstack Send” or “Interstack Receive” (in Hardware tab) or “HTTP API” block (in Software tab) to communicate with other stacks or web sites on the internet.
For advanced users, included here is the full blocks detail spec sheet with all properties and terminals.
Wifi wireless network interface. Set properties to connect to a LAN. Stack to stack communicaiton is done with Interstack Send and Interstack Receive blocks. Internet web communication is done with HTTP API block or TCP Client block.
T (uuid): Module Type.
F (int): Firmware Version
N (string): Network Name. string up to 32 characters
S (int): Security. 0 none 4 WPA2 (default).
P (string): Password. 8 to 63 characters for WPA2. Write only.
D (int): Use DHCP. 0 static IP. 1 use DHCP (default).
I (string): IP address. string up to 15 characters. from DHCP or manual static. xxx.xxx.xxx.xxx
Y (string): Subnet mask. string up to 15 characters. from DHCP or manual static
R (string): Router (Gateway) IP Address. string up to 15 character. from DHCP or manually static
Z (string): DNS Name server IP address. string up to 15 character. (from DHCP) or manually set.
W (string): DNS Name server2 IP address. string up to 15 character. secondary (from DHCP) or manually set.
M (string): Wifi MAC address. Read Only. 17 character string. In case you need to provide to your IT department for secure network access.
Q (int): RSSI signal strength for connected network. Read only. signed 16 bit integer. negative number. closer to 0 is stronger signal.
C (int): Connection status. Read Only. 0 if not connected. 1 if connected to network. 2 if dhcp assigned successfully. This int is also sent out terminal 1 on change.
L (Any) : Any value, typically a string, that describes location of stack. This is sent, or received, to indicate a stack’s location during stack to stack messaging. (The ‘L’ property in an individual stack-to-stack send or receive block can override this value for that block only).
“Properties” - in (List or Property Name string): To set property. Send property name, Value. For example [’N’,’netname’]. To get property, just send property name. For example. ’N'
“PResponse” - out (List or True) : On set, responds with True when done. On get, responds with list. For example [’N’, ‘netname’].
“Connected" - out (int): 0 not connected. 1 connected to LAN. 2 have dhcp assigned. Transmits on state change.
This hardware module supports dynamic creation of stack-to-stack send and receive blocks, and TCP Client blocks. The corner LED will flash orange when it is trying to connect to a LAN. Once it gets its IP address from the LAN, it will stop flashing and resume normal behavior.
Refer to documentation on many other topics at interstacks.com/support.
Please email email@example.com with any questions.