Datasheet

Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
NOTE: The address pointed to by the web browser (http://192.168.1.115/) is the IP address of Flyport
in the network. This is the way to access a Flyport webserver on a local network.
QUESTION: How can I change value of a dynamic variable?
The value “dynamic value!” above is the value that Flyport places in the variable
~string_serial~ when the page is sent to a Client due to a request to access the page. If the
value of the variable changes, the webpage will not be changed since there is no refresh
mechanism inside the code of this specific index.htm. Here's another example of what happens
when a dynamic variable is changed at runtime.
Here is the code of “taskFlyport.c” that permits user to change the string string_serial” at runtime
using UART1:
#include "taskFlyport.h"
char string_serial[20]="dynamic variable!";
void FlyportTask()
{
// Flyport Wi-Fi // Flyport Ethernet
WFConnect(WF_DEFAULT); while(!MAClinked);
while (WFStatus != CONNECTED);
UARTWrite(1,"Flyport connected... hello world!\r\n");
// Write to serial console the status of string_serial
UARTWrite(1,string_serial);
int len_s;
while(1)
{
// wait until a char is received in UART1
while (!UARTBufferSize(1));
vTaskDelay(10);
len_s = UARTBufferSize(1);
// Read the string received and put it
// on the variable string_serial
UARTRead(1,string_serial,len_s);
60