Component: Webserver (GENERIC - Flash / File) (Comms: Networking)
Author | Matrix Ltd. |
Version | 1.7 |
Category | Comms: Networking |
Contents
Webserver (GENERIC - Flash / File) component
Webserver component designed to work with Network Comms abstraction layer. Provides a very simple interface to allow webpages to be hosted from hardware or simulation. Webpages can be embedded into ROM or can be pulled directly from a local file or a SD card via the File component. The File mode allows for images and other media to be served to the web client.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WebServer.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_WebServer.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Webserver Embedded Files
A simple example demonstrating how to host a website with fixed HTTP content including dynamic sections that can be passed in and out of Flowcode SCADA.
For example a dynamic section could be used to display a variable value on a webpage such as a temperature or used to control Flowcode e.g. turn on an output.
Webserver Dynamic Files
Flowcode Embedded
A simple example demonstrating how to host a website with dynamic content based on external files including dynamic sections that can be passed in and out of an embedded system using an SD card and an ESP8266 module.
For example a dynamic section could be used to display a variable value on a webpage such as a temperature or used to control Flowcode e.g. turn on an output.
Flowcode App Developer
A simple example demonstrating how to host a website with dynamic content based on external files including dynamic sections that can be passed in and out of Flowcode App Developer.
For example a dynamic section could be used to display a variable value on a webpage such as a temperature or used to control Flowcode e.g. turn on an output.
Macro reference
CheckSocketActivity
CreateServerSocket
GetInValue
GetInValue | |
Returns the string value of a Request parameter | |
- BYTE | Index |
Incoming string Index Range: 0 to Incoming Count - 1 | |
- STRING | Return |
GetInValueFloat
GetInValueFloat | |
Returns the float value of an incoming Request parameter | |
- BYTE | Index |
Range: 0 to IncomingCount - 1 | |
- FLOAT | Return |
GetInValueLong
GetInValueLong | |
Returns the integer value of an incoming Request parameter | |
- BYTE | Index |
Range: 0 to IncomingCount - 1 | |
- LONG | Return |
Initialise
Initialise | |
Resets and initialises the Web Server component. | |
- VOID | Return |
SetOutValue
SetOutValue | |
Set the value of an outbound substitution string | |
- BYTE | Index |
Incoming string Index Range: 0 to Outgoing Count - 1 | |
- STRING | Value |
- VOID | Return |
SetOutValueFloat
SetOutValueLong