Difference between revisions of "Component: WLAN (ESP8266) (Comms: Networking)"
From Flowcode Help
Jump to navigationJump to searchLine 48: | Line 48: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 53: | Line 55: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===SendString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 76: | Line 79: | ||
+ | ===DisconnectFromSSID=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 89: | Line 93: | ||
+ | ===ClientConnect=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 117: | Line 122: | ||
+ | ===ControlTCPServer=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 140: | Line 146: | ||
+ | ===GetFirmwareVersion=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 153: | Line 160: | ||
+ | ===CheckForPageRequests=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 166: | Line 174: | ||
+ | ===ClientSendRequest=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 184: | Line 193: | ||
+ | ===ReadSSIDFromScan=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 202: | Line 212: | ||
+ | ===CreateAccessPoint=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 235: | Line 246: | ||
+ | ===SetOutValue=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 258: | Line 270: | ||
+ | ===EndServerConnection=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 271: | Line 284: | ||
+ | ===Send_Embedded_HTML_Page4=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 284: | Line 298: | ||
+ | ===ReadSignalStrengthFromScan=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 302: | Line 317: | ||
+ | ===Send_Embedded_HTML_Page3=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 315: | Line 331: | ||
+ | ===Send_Embedded_HTML_Page2=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 328: | Line 345: | ||
+ | ===Send_Embedded_HTML_Page1=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 341: | Line 359: | ||
+ | ===ReadEncryptionModeFromScan=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 359: | Line 378: | ||
+ | ===GetByteWithTimeout=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 372: | Line 392: | ||
+ | ===GetInValue=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 390: | Line 411: | ||
+ | ===ConnectToSSID=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 418: | Line 440: | ||
+ | ===ClientSendArray=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 441: | Line 464: | ||
+ | ===GetRxArray=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 464: | Line 488: | ||
+ | ===ScanForSSID=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 477: | Line 502: | ||
+ | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 490: | Line 516: | ||
+ | ===CheckTCPServerIP=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:53, 3 February 2023
Author | Matrix Ltd. |
Version | 2.1 |
Category | Comms: Networking |
Contents
- 1 WLAN (ESP8266) component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 SendString
- 5.2 DisconnectFromSSID
- 5.3 ClientConnect
- 5.4 ControlTCPServer
- 5.5 GetFirmwareVersion
- 5.6 CheckForPageRequests
- 5.7 ClientSendRequest
- 5.8 ReadSSIDFromScan
- 5.9 CreateAccessPoint
- 5.10 SetOutValue
- 5.11 EndServerConnection
- 5.12 Send_Embedded_HTML_Page4
- 5.13 ReadSignalStrengthFromScan
- 5.14 Send_Embedded_HTML_Page3
- 5.15 Send_Embedded_HTML_Page2
- 5.16 Send_Embedded_HTML_Page1
- 5.17 ReadEncryptionModeFromScan
- 5.18 GetByteWithTimeout
- 5.19 GetInValue
- 5.20 ConnectToSSID
- 5.21 ClientSendArray
- 5.22 GetRxArray
- 5.23 ScanForSSID
- 5.24 Initialise
- 5.25 CheckTCPServerIP
- 6 Property reference
WLAN (ESP8266) component
Wireless LAN component designed to work with the ESP8266 module. Provides a very simple interface to allow webpages to be hosted from hardware or simulation. Also available in the form of the EB069 E-block.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WLAN_ESP8266.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_WLAN_ESP8266.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
SendString
DisconnectFromSSID
![]() |
DisconnectFromSSID |
Disconnects from the current SSID. Returns 1 if the command was accepted and returned an "OK" | |
![]() |
Return |
ClientConnect
ControlTCPServer
GetFirmwareVersion
![]() |
GetFirmwareVersion |
Collects the firmware version from the ESP8266 module and returns it as a string. | |
![]() |
Return |
CheckForPageRequests
![]() |
CheckForPageRequests |
To be called periodically. Returns non-zero if a request has been processed | |
![]() |
Return |
ClientSendRequest
![]() |
ClientSendRequest |
Sends out a string with the required AT+CIPSEND=Length$(Request) initialiser. | |
![]() |
Request |
e.g. "GET / HTTP/1.0\r\n\r\n" | |
![]() |
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 |
CreateAccessPoint
SetOutValue
![]() |
SetOutValue |
Set the value of an outbound substitution string | |
![]() |
index |
Range 0-4 | |
![]() |
value |
![]() |
Return |
EndServerConnection
![]() |
EndServerConnection |
Disconnects from the current active TCP/IP pipe. | |
![]() |
Return |
Send_Embedded_HTML_Page4
![]() |
Send_Embedded_HTML_Page4 |
![]() |
Return |
ReadSignalStrengthFromScan
Send_Embedded_HTML_Page3
![]() |
Send_Embedded_HTML_Page3 |
![]() |
Return |
Send_Embedded_HTML_Page2
![]() |
Send_Embedded_HTML_Page2 |
![]() |
Return |
Send_Embedded_HTML_Page1
![]() |
Send_Embedded_HTML_Page1 |
![]() |
Return |
ReadEncryptionModeFromScan
GetByteWithTimeout
![]() |
GetByteWithTimeout |
Attempts to receive a byte from the circular buffer. If nothing is available then waits up to 200 ms for data to become available. | |
![]() |
Return |
GetInValue
![]() |
GetInValue |
Returns the string value of a Request parameter | |
![]() |
index |
Index of the request paramter, starting at zero Range 0-2 | |
![]() |
Return |
ConnectToSSID
ClientSendArray
![]() |
ClientSendArray |
Sends out an array of data bytes with the required AT+CIPSEND=Length$(Request) initialiser. | |
![]() |
Data |
![]() |
NumBytes |
![]() |
Return |
GetRxArray
ScanForSSID
Initialise
![]() |
Initialise |
Initialise the device with the property data. Returns 1 if "ready" message successfully received Returns 0 if no reply from module | |
![]() |
Return |
CheckTCPServerIP
![]() |
CheckTCPServerIP |
Collects the local IP address of the active TCP server. | |
![]() |
Return |