Datasheet

Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
This page permits the upload of the MPFSImg2.bin file directly into the External Flash memory. In this
way it is not needed to reboot the Flyport to have a upgraded webserver.
Warning: Pay attention! The pages can be updated with the using of the mpfsupload page, but not
the related callback functions. If a web page have a new dynamic variable, it's callback function must
be updated with a new firmware, since the HTTPPrint and/or the HTTPApp.c must be changed to
manage this new variable. If a page is changed, but the dynamic variables are not changed, the
upload can be done entirely with the browser.
Dynamic Variables
A dynamic variable is a variable that may be changed by the openPicus Framework at runtime. This
means that its value is not pre-defined but can be changed, for example, by a Serial command or the
state of a input pin. This is one useful feature of the Flyport webserver, since it permits to a user to
view data changes on a web page, rather than by using serial communication, an LCD display or other
physical debugging tools. Using the webserver, Flyport can also draw graphics to display the state of
its peripherals, memory, or anything the user might need.
A dynamic variable is a variable that is enclosed within two tildes (~). For example,
~this_is_a_dynamic_var~. The two “~
informs the openPicus Framework that the value of the
variable is connected to a variable content, like a number or a string, and that it should send it to the
web browser using specific functions inside of HTTPApp.c file.
QUESTION: How can I use dynamic variables?
Here is an example of the use of dynamic variables. We have a almost blank web page, where the
only text shown is a dynamic variable. The code of the index.htm page is this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Flyport online webserver</title>
</head>
<body>
~string_serial~
</body>
</html>
58