Component: WLAN ESP32 (Dummy) (ESP32) (Comms: Networking): Difference between revisions
Appearance
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 87: | Line 87: | ||
===AcceptClose=== | ===AcceptClose=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AcceptClose''' | ||
|- | |- | ||
| colspan="2" | Close the socket associated with the Accepted incoming connection | | colspan="2" | Close the socket associated with the Accepted incoming connection | ||
| Line 101: | Line 101: | ||
===AcceptOpen=== | ===AcceptOpen=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''AcceptOpen''' | ||
|- | |- | ||
| colspan="2" | Returns 1 if there is an incoming connection on the listening port | | colspan="2" | Returns 1 if there is an incoming connection on the listening port | ||
| Line 115: | Line 115: | ||
===ConnectToSSID=== | ===ConnectToSSID=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ConnectToSSID''' | ||
|- | |- | ||
| colspan="2" | Attempts to connect to the given SSID and Key values. Returns 1 if the SSID has been connected. | | colspan="2" | Attempts to connect to the given SSID and Key values. Returns 1 if the SSID has been connected. | ||
| Line 144: | Line 144: | ||
===CreateAccessPoint=== | ===CreateAccessPoint=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''CreateAccessPoint''' | ||
|- | |- | ||
| colspan="2" | 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. | | colspan="2" | 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. | ||
| Line 178: | Line 178: | ||
===Initialise=== | ===Initialise=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Initialise the WiFi system Returns 1 if successful Returns 0 if not | | colspan="2" | Initialise the WiFi system Returns 1 if successful Returns 0 if not | ||
| Line 192: | Line 192: | ||
===ReadEncryptionModeFromScan=== | ===ReadEncryptionModeFromScan=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadEncryptionModeFromScan''' | ||
|- | |- | ||
| colspan="2" | 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 | | colspan="2" | 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 | ||
| Line 211: | Line 211: | ||
===ReadIP=== | ===ReadIP=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadIP''' | ||
|- | |- | ||
| colspan="2" | Collects the local IP address | | colspan="2" | Collects the local IP address | ||
| Line 230: | Line 230: | ||
===ReadSSIDFromScan=== | ===ReadSSIDFromScan=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadSSIDFromScan''' | ||
|- | |- | ||
| colspan="2" | Collects one of the SSID name strings from the last SSID Scan. The ScanForSSID macro must be called first. | | colspan="2" | Collects one of the SSID name strings from the last SSID Scan. The ScanForSSID macro must be called first. | ||
| Line 249: | Line 249: | ||
===ReadSignalStrengthFromScan=== | ===ReadSignalStrengthFromScan=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadSignalStrengthFromScan''' | ||
|- | |- | ||
| colspan="2" | 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 | | colspan="2" | 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 | ||
| Line 268: | Line 268: | ||
===ScanForSSID=== | ===ScanForSSID=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ScanForSSID''' | ||
|- | |- | ||
| colspan="2" | 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. | | colspan="2" | 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. | ||
| Line 282: | Line 282: | ||
===SocketClose=== | ===SocketClose=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SocketClose''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 296: | Line 296: | ||
===SocketConnect=== | ===SocketConnect=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SocketConnect''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 320: | Line 320: | ||
===SocketListen=== | ===SocketListen=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SocketListen''' | ||
|- | |- | ||
| colspan="2" | Listen on, or bind, local port to already opened socket. Returns 1 if OK, 0 if fail | | colspan="2" | Listen on, or bind, local port to already opened socket. Returns 1 if OK, 0 if fail | ||
| Line 339: | Line 339: | ||
===SocketOpen=== | ===SocketOpen=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SocketOpen''' | ||
|- | |- | ||
| colspan="2" | Returns 1 if socket sucessfully opened | | colspan="2" | Returns 1 if socket sucessfully opened | ||
| Line 353: | Line 353: | ||
===SocketRead=== | ===SocketRead=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SocketRead''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 377: | Line 377: | ||
===SocketWrite=== | ===SocketWrite=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SocketWrite''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 402: | Line 402: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Simulation | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| 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
AcceptClose
| AcceptClose | |
| Close the socket associated with the Accepted incoming connection | |
| Return | |
AcceptOpen
| AcceptOpen | |
| Returns 1 if there is an incoming connection on the listening port | |
| Return | |
ConnectToSSID
CreateAccessPoint
Initialise
| Initialise | |
| Initialise the WiFi system Returns 1 if successful Returns 0 if not | |
| Return | |
ReadEncryptionModeFromScan
ReadIP
| ReadIP | |
| Collects the local IP address | |
| Index | |
| Return | |
ReadSSIDFromScan
| ReadSSIDFromScan | |
| Collects one of the SSID name strings from the last SSID Scan. The ScanForSSID macro must be called first. | |
| Index | |
| SSID Index | |
| Return | |
ReadSignalStrengthFromScan
ScanForSSID
SocketClose
| SocketClose | |
| Return | |
SocketConnect
| SocketConnect | |
| Address | |
| Port | |
| Return | |
SocketListen
| SocketListen | |
| Listen on, or bind, local port to already opened socket. Returns 1 if OK, 0 if fail | |
| Port | |
| Return | |
SocketOpen
| SocketOpen | |
| Returns 1 if socket sucessfully opened | |
| Return | |
SocketRead
| SocketRead | |
| Buffer | |
| Size | |
| Return | |
SocketWrite
| SocketWrite | |
| Buffer | |
| Size | |
| Return | |