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 ’Network_Name’ property for LAN network name (SSID), and the ‘Password’ property for the password. There are many other support documents that describe sending data to cloud platforms and using this Wifi module as both a client and an Access Point.
Set Properties for Wifi block
To set properties in Stackbuilder: Select the Wifi block by clicking on it once. You will see the “Property Editor” in the bottom right for the block selected. Click in the "Initial Value" column for the "Name" of the property you want to set and type the value (if a character or string, use quotes).
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.
Type (uuid): Module Type.
Version (int): Firmware Version
Network_Name (string): Network Name. string up to 32 characters
Security (int): Security. 0 none 4 WPA2 (default).
Password (string): Password. 8 to 63 characters for WPA2. Write only.
DHCP (int): Use DHCP. 0 static IP. 1 use DHCP (default).
IP_Address (string): IP address. string up to 15 characters. from DHCP or manual static. xxx.xxx.xxx.xxx
Subnet_Mask (string): Subnet mask. string up to 15 characters. from DHCP or manual static
Router_Address (string): Router (Gateway) IP Address. string up to 15 character. from DHCP or manually static
DNS_Address (string): DNS Name server IP address. string up to 15 character. (from DHCP) or manually set.
DNS2_Address (string): DNS Name server2 IP address. string up to 15 character. secondary (from DHCP) or manually set.
MAC_Address (string): Wifi MAC address. Read Only. 17 character string. In case you need to provide to your IT department for secure network access.
RSSI (int): RSSI signal strength for connected network. Read only. signed 16 bit integer. negative number. closer to 0 is stronger signal.
Status (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.
Mode (int): Module mode: 0 Client mode (default), 1 No Wifi, 2 Simultaneous AP and Client, 3 AP access point mode only.
ID (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).
AP_network_name (string): Network name, SSID, of access point to which clients connect.
AP_password (string): Password for access point of stack for client connections.
AP_subnet_mask (string): Subnet mask for stack access point.
AP_ip_address (string): Set IP address for AP (access point). String up to 15 characters. xxx.xxx.xxx.xxx. Default is 192.168.88.1
AP_router (string): IP address of the router/gateway to provide to DHCP clients. Default is 0.0.0.0 providing no routing to clients.
Cloud_address (string): IP address of Interstacks cloud services (currently discovery.interstacks.com for cloud discovery of stack to stack and message relay.
“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 firstname.lastname@example.org with any questions.