Menu
  • Use Cases
  • Stacks
  • Stackbuilder
  • MyStacks
  • Support
  • About Us
  • Contact
  • Use Cases
  • Stacks
  • Stackbuilder
  • MyStacks
  • Support
  • About Us
  • Contact
  • View Cart

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. Click in the “Property Editor” in the bottom right, in the “Initial Value” column for the property you want to edit (if a character or string, use quotes).


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.

Block properties and terminals

Properties
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.

Terminals
“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.

Notes
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/knowledge-base.
Please email info@interstacks.com with any questions.

Popular Articles

  • MyStacks Cloud Dashboard
  • Internet communication with HTTP block
  • Download and install Stackbuilder

Contact Us

Contact us with any questions or help with deploying your IoT projects.

CONTACT US

Connect

  • Facebook
  • Twitter
  • LinkedIn
  • Email

Sign up for the latest Interstacks news.

Join Our Newsletter
  Thank you for Signing Up
  Please correct the marked field(s) below.
1,false,1,First Name,2
Email:
1,true,6,Subscriber Email,2
Name:
1,false,1,Last Name,2

Copyright © 2023 Interstacks. All rights reserved. Privacy Policy | Terms and Conditions

Site by Imagebox