Use the Ethernet 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 Ethernet block from the Hardware tab into your blueprint. The connector is a standard RJ-45 connector.
To set properties in Stackbuilder: Select the Ethernet 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).
Use other blocks, like “Interstack Send” or “Interstack Receive” (in Hardware tab) or “HTTP API” block (in Software tab) to communicate with other stacks, and web sites or industrial IoT platforms on the internet or on-premise.
Version (int): Firmware VersionDHCP (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.
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), 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.
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.
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 email@example.com with any questions.