How to connect, how to control 8888-Display by HTTP/WiFi
|
Quick resume, 8888-Display can be controlled with:
Collegamento WiFi
From your device you can connect to the internal WiFi generated by 8888-Display, or you can connect 8888-Display to WiFi in the Settings, as illustrated in the
quick manual for 8888.
WiFi / HTTP commands
Through an HTTP GET request made to:
http://wfeasy.com/c
one or more commands can be sent to 8888-Display at the same time, in the classic GET request format (so using "&" to enter multiple parameters and separate them, and using the classic URL-encode to handle non-alphanumeric characters). The available commands are below.
Example:
http://wfeasy.com/c?l=100
set the brightness to 100
http://wfeasy.com/c?s=hello
shows the string "hello" on the display
http://wfeasy.com/c?l=100&s=hello
set the brightness to 100 and show the string "hello" on the display.
All this can be done for example by connecting to the internal WiFi with a PC and writing these things on the browser (eg Firefox); obviously you can also do it with ESP8266 or Raspberry or other devices, using an http software library.
Command pw=
If the use of a password is enabled (it is enabled and defined via the internal WiFi), it must be added to any request, putting it in pw
Examples:
http://wfeasy.com/c?s=hello&pw=a8d7f6k5
displays the string "hello", but only if the password stored in the Settings is a8d7f6k5 - if the pass is not correct, it does nothing.
Command s=
Shows the string on the display, scrolling if the length of the string is greater than the available characters.
Examples:
s=8765
Shows 8765
s=Hello world!
Shows Hello world! doing continuous scrolling
s=@Hello moon!
Shows Hello moon! scrolling once
Command x=
It shows the string on the display, scrolling if the length of the string is greater than the available characters, once, then returns to show what it was previously showing. The string is max 252 characters.
Examples:
x=Hello moon!
Shows Hello moon! scrolling once and then it goes back to doing what it was doing before.
Command t=
It shows on the display a timer in seconds.hundredths, starting from the hundredth supplied in input.
Examples:
t=0
Starts and displays a timer starting at 00.00
t=12
Starts and displays a timer starting from 00.12
t=s
Stop the timer at the time reached.
t=S1234
Stop the timer at 12.34
Command k=
Puts the display in clock mode, setting the time if necessary.
Examples:
k=1230
Starts the clock at 12.30 and displays the clock from now on.
k=n
From now on it displays the clock.
Command l=
Set the brightness (or max brightness), the number goes from 0 to 100.
Examples:
l=90
Set the brightness (or max brightness) to 90.
l=a
Activate automatic brightness control.
l=d
Deactivate automatic brightness control.
Command p=
Set the scrolling speed in hundredths of a second (default 25; minimum 5; step 5)
Examples:
p=40
Set the scrolling to 40 hundredths of a second.
Example of ESP program to write something on 8888-Display with WiFi / HTTP
Program chunck to write "hello" on display:
#include <ESP8266HTTPClient.h>
...
HTTPClient http;
String url="http://wfeasy.com/c?s=hello";
http.begin(url);
int httpCode = http.GET();
Here are the quick manuals for some other products:
(C) 2022 VisualVision