Author
|
Matrix Ltd.
|
Version
|
2.3
|
Category
|
Comms: Networking
|
WLAN ESP32 (Dummy) component
Wireless LAN component designed to work with ESP32 modules
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WLAN_ESP32_Dummy.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_WLAN_ESP32_Dummy.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Here is an example Flowcode program to send analogue data to a html web page.
The web page is set up to refresh every second
Instructions on how to change the refresh rate and access the web page is explained within the example file.
ESP Webpage
Macro reference
|
SocketConnect
|
|
- STRING
|
Address
|
|
- UINT
|
Port
|
|
- BYTE
|
Return
|
|
SocketListen
|
Listen on, or bind, local port to already opened socket. Returns 1 if OK, 0 if fail
|
- UINT
|
Port
|
|
- BYTE
|
Return
|
|
ReadSSIDFromScan
|
Collects one of the SSID name strings from the last SSID Scan. The ScanForSSID macro must be called first.
|
- BYTE
|
Index
|
SSID Index
|
- STRING
|
Return
|
|
CreateAccessPoint
|
Sets up the wireless LAN module into AP mode to host a wireless network. Other WIFI enabled devices can then connect to the module. Returns 1 for success.
|
- STRING
|
SSID
|
Name of the wireless network to create
|
- STRING
|
Password
|
Password used to gain access to the network
|
- BYTE
|
Channel
|
802.11 Channel Range 1-14
|
- BYTE
|
Encryption
|
0=Open, 1=WEP, 2=WPA_PSK, 3=WPA2_PSK, 4=WPA_WPA2_PSK
|
- BYTE
|
Return
|
|
ReadIP
|
Collects the local IP address
|
- BYTE
|
Index
|
|
- BYTE
|
Return
|
|
SocketWrite
|
|
- STRING
|
Buffer
|
|
- UINT
|
Size
|
|
- UINT
|
Return
|
|
ReadSignalStrengthFromScan
|
Collects the signal strength from the last SSID Scan. The ScanForSSID macro must be called first. Value returned is in negative dB, smaller value = better signal
|
- BYTE
|
Index
|
SSID Index
|
- INT
|
Return
|
|
ReadEncryptionModeFromScan
|
Collects one of the encryption modes from the last SSID Scan. The ScanForSSID macro must be called first. 0=Open, 1=WEP, 2=WPA_PSK, 3=WPA2_PSK, 4=WPA_WPA2_PSK
|
- BYTE
|
Index
|
SSID Index
|
- BYTE
|
Return
|
|
ConnectToSSID
|
Attempts to connect to the given SSID and Key values. Returns 1 if the SSID has been connected.
|
- STRING
|
SSID
|
|
- STRING
|
Key
|
|
- BYTE
|
Timeout
|
Number of seconds to wait for the connection, default 20
|
- BYTE
|
Return
|
|
SocketOpen
|
Returns 1 if socket sucessfully opened
|
- BYTE
|
Return
|
|
SocketClose
|
|
- VOID
|
Return
|
|
AcceptOpen
|
Returns 1 if there is an incoming connection on the listening port
|
- BYTE
|
Return
|
|
ScanForSSID
|
Checks for wireless networks in the local area which are broadcasting their SSID. Must not be connected to a network to allow this to function. Returns the number of wireless networks found, max 8.
|
- BYTE
|
Return
|
|
SocketRead
|
|
- STRING
|
Buffer
|
|
- UINT
|
Size
|
|
- UINT
|
Return
|
|
AcceptClose
|
Close the socket associated with the Accepted incoming connection
|
- VOID
|
Return
|
|
Initialise
|
Initialise the WiFi system Returns 1 if successful Returns 0 if not
|
- BYTE
|
Return
|
Property reference
|
Properties
|
|
Simulation
|
|
Label
|
Text label used to help identify the component on the panel.
|
|
Simulation Method
|
Decides how to handle the simulation of the component. TCP Base - Allows simulation of the network communications using the TCP Base component and DLL. COM/Injector - Allows the simulation to connect to real hardware or injectors.
|
==Macro reference==
|
SocketConnect
|
|
- STRING
|
Address
|
|
- UINT
|
Port
|
|
- BYTE
|
Return
|
|
SocketListen
|
Listen on, or bind, local port to already opened socket. Returns 1 if OK, 0 if fail
|
- UINT
|
Port
|
|
- BYTE
|
Return
|
|
ReadSSIDFromScan
|
Collects one of the SSID name strings from the last SSID Scan. The ScanForSSID macro must be called first.
|
- BYTE
|
Index
|
SSID Index
|
- STRING
|
Return
|
|
CreateAccessPoint
|
Sets up the wireless LAN module into AP mode to host a wireless network. Other WIFI enabled devices can then connect to the module. Returns 1 for success.
|
- STRING
|
SSID
|
Name of the wireless network to create
|
- STRING
|
Password
|
Password used to gain access to the network
|
- BYTE
|
Channel
|
802.11 Channel Range 1-14
|
- BYTE
|
Encryption
|
0=Open, 1=WEP, 2=WPA_PSK, 3=WPA2_PSK, 4=WPA_WPA2_PSK
|
- BYTE
|
Return
|
|
ReadIP
|
Collects the local IP address
|
- BYTE
|
Index
|
|
- BYTE
|
Return
|
|
SocketWrite
|
|
- STRING
|
Buffer
|
|
- UINT
|
Size
|
|
- UINT
|
Return
|
|
ReadSignalStrengthFromScan
|
Collects the signal strength from the last SSID Scan. The ScanForSSID macro must be called first. Value returned is in negative dB, smaller value = better signal
|
- BYTE
|
Index
|
SSID Index
|
- INT
|
Return
|
|
ReadEncryptionModeFromScan
|
Collects one of the encryption modes from the last SSID Scan. The ScanForSSID macro must be called first. 0=Open, 1=WEP, 2=WPA_PSK, 3=WPA2_PSK, 4=WPA_WPA2_PSK
|
- BYTE
|
Index
|
SSID Index
|
- BYTE
|
Return
|
|
ConnectToSSID
|
Attempts to connect to the given SSID and Key values. Returns 1 if the SSID has been connected.
|
- STRING
|
SSID
|
|
- STRING
|
Key
|
|
- BYTE
|
Timeout
|
Number of seconds to wait for the connection, default 20
|
- BYTE
|
Return
|
|
SocketOpen
|
Returns 1 if socket sucessfully opened
|
- BYTE
|
Return
|
|
SocketClose
|
|
- VOID
|
Return
|
|
AcceptOpen
|
Returns 1 if there is an incoming connection on the listening port
|
- BYTE
|
Return
|
|
ScanForSSID
|
Checks for wireless networks in the local area which are broadcasting their SSID. Must not be connected to a network to allow this to function. Returns the number of wireless networks found, max 8.
|
- BYTE
|
Return
|
|
SocketRead
|
|
- STRING
|
Buffer
|
|
- UINT
|
Size
|
|
- UINT
|
Return
|
|
AcceptClose
|
Close the socket associated with the Accepted incoming connection
|
- VOID
|
Return
|
|
Initialise
|
Initialise the WiFi system Returns 1 if successful Returns 0 if not
|
- BYTE
|
Return
|
Property reference
|
Properties
|
|
Simulation
|
|
Label
|
Text label used to help identify the component on the panel.
|
|
Simulation Method
|
Decides how to handle the simulation of the component. TCP Base - Allows simulation of the network communications using the TCP Base component and DLL. COM/Injector - Allows the simulation to connect to real hardware or injectors.
|
==Macro reference==
|
SocketConnect
|
|
- STRING
|
Address
|
|
- UINT
|
Port
|
|
- BYTE
|
Return
|
|
SocketListen
|
Listen on, or bind, local port to already opened socket. Returns 1 if OK, 0 if fail
|
- UINT
|
Port
|
|
- BYTE
|
Return
|
|
ReadSSIDFromScan
|
Collects one of the SSID name strings from the last SSID Scan. The ScanForSSID macro must be called first.
|
- BYTE
|
Index
|
SSID Index
|
- STRING
|
Return
|
|
CreateAccessPoint
|
Sets up the wireless LAN module into AP mode to host a wireless network. Other WIFI enabled devices can then connect to the module. Returns 1 for success.
|
- STRING
|
SSID
|
Name of the wireless network to create
|
- STRING
|
Password
|
Password used to gain access to the network
|
- BYTE
|
Channel
|
802.11 Channel Range 1-14
|
- BYTE
|
Encryption
|
0=Open, 1=WEP, 2=WPA_PSK, 3=WPA2_PSK, 4=WPA_WPA2_PSK
|
- BYTE
|
Return
|
|
ReadIP
|
Collects the local IP address
|
- BYTE
|
Index
|
|
- BYTE
|
Return
|
|
SocketWrite
|
|
- STRING
|
Buffer
|
|
- UINT
|
Size
|
|
- UINT
|
Return
|
|
ReadSignalStrengthFromScan
|
Collects the signal strength from the last SSID Scan. The ScanForSSID macro must be called first. Value returned is in negative dB, smaller value = better signal
|
- BYTE
|
Index
|
SSID Index
|
- INT
|
Return
|
|
ReadEncryptionModeFromScan
|
Collects one of the encryption modes from the last SSID Scan. The ScanForSSID macro must be called first. 0=Open, 1=WEP, 2=WPA_PSK, 3=WPA2_PSK, 4=WPA_WPA2_PSK
|
- BYTE
|
Index
|
SSID Index
|
- BYTE
|
Return
|
|
ConnectToSSID
|
Attempts to connect to the given SSID and Key values. Returns 1 if the SSID has been connected.
|
- STRING
|
SSID
|
|
- STRING
|
Key
|
|
- BYTE
|
Timeout
|
Number of seconds to wait for the connection, default 20
|
- BYTE
|
Return
|
|
SocketOpen
|
Returns 1 if socket sucessfully opened
|
- BYTE
|
Return
|
|
SocketClose
|
|
- VOID
|
Return
|
|
AcceptOpen
|
Returns 1 if there is an incoming connection on the listening port
|
- BYTE
|
Return
|
|
ScanForSSID
|
Checks for wireless networks in the local area which are broadcasting their SSID. Must not be connected to a network to allow this to function. Returns the number of wireless networks found, max 8.
|
- BYTE
|
Return
|
|
SocketRead
|
|
- STRING
|
Buffer
|
|
- UINT
|
Size
|
|
- UINT
|
Return
|
|
AcceptClose
|
Close the socket associated with the Accepted incoming connection
|
- VOID
|
Return
|
|
Initialise
|
Initialise the WiFi system Returns 1 if successful Returns 0 if not
|
- BYTE
|
Return
|
Property reference
|
Properties
|
|
Simulation
|
|
Label
|
Text label used to help identify the component on the panel.
|
|
Simulation Method
|
Decides how to handle the simulation of the component. TCP Base - Allows simulation of the network communications using the TCP Base component and DLL. COM/Injector - Allows the simulation to connect to real hardware or injectors.
|