Difference between revisions of "Component: WLAN ESP32 (ESP32) (Comms: Networking)"
From Flowcode Help
Jump to navigationJump to searchLine 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 34: | Line 36: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Here is an example Flowcode program to send analogue data to a html web page. | Here is an example Flowcode program to send analogue data to a html web page. | ||
Line 184: | Line 188: | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u16-icon.png]] - UINT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Disconnect''' | ||
+ | |- | ||
+ | | colspan="2" | Attempts to disconnect from the SSID. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
Line 274: | Line 291: | ||
|- | |- | ||
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
+ | |||
+ | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Uninitialise''' | ||
+ | |- | ||
+ | | colspan="2" | Shuts down the WiFi system for low power operation. Returns 1 if successful Returns 0 if not | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
|} | |} | ||
Line 368: | Line 398: | ||
| colspan="2" | | | colspan="2" | | ||
|- | |- | ||
− | | width="10%" align="center" style="background-color:# | + | | width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]] |
− | | width="90%" style="background-color:# | + | | width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation |
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|- | |- |
Latest revision as of 17:24, 9 November 2022
Author | Matrix Ltd. |
Version | 2.4 |
Category | Comms: Networking |
Contents
WLAN ESP32 component
Wireless LAN component designed to work with ESP32 modules
Component Pack
FREE
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
Downloadable macro reference
![]() |
ReadIPString |
Collects the local IP address and returns it as an ASCII string. e.g. "192.168.0.1" | |
![]() |
Return |
![]() |
SocketConnect |
![]() |
Address |
![]() |
Port |
![]() |
Return |
![]() |
SocketListen |
Listen on, or bind, local port to already opened socket. Returns 1 if OK, 0 if fail | |
![]() |
Port |
![]() |
Return |
![]() |
ReadSSIDFromScan |
Collects one of the SSID name strings from the last SSID Scan. The ScanForSSID macro must be called first. | |
![]() |
Index |
SSID Index | |
![]() |
Return |
![]() |
SocketWrite |
![]() |
Buffer |
![]() |
Size |
![]() |
Return |
![]() |
Disconnect |
Attempts to disconnect from the SSID. | |
![]() |
Return |
![]() |
SocketOpen |
Returns 1 if socket sucessfully opened | |
![]() |
Return |
![]() |
SocketClose |
![]() |
Return |
![]() |
Uninitialise |
Shuts down the WiFi system for low power operation. Returns 1 if successful Returns 0 if not | |
![]() |
Return |
![]() |
AcceptOpen |
Returns 1 if there is an incoming connection on the listening port | |
![]() |
Return |
![]() |
SocketRead |
![]() |
Buffer |
![]() |
Size |
![]() |
Return |
![]() |
AcceptClose |
Close the socket associated with the Accepted incoming connection | |
![]() |
Return |
![]() |
Initialise |
Initialise the WiFi system Returns 1 if successful Returns 0 if not | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Verbose Debug |
![]() |
Simulation |
![]() |
Network Interface |
List of network interfaces connected to the PC. Sets which interface we are communicating via. | |
![]() |
Console Data |
Generate Console Data |