Added RD HTTP api call for realtime udp
This commit is contained in:
parent
0166dfe16e
commit
b9c27ed324
@ -89,7 +89,7 @@
|
|||||||
|
|
||||||
|
|
||||||
//version code in format yymmddb (b = daily build)
|
//version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 1903072
|
#define VERSION 1903091
|
||||||
char versionString[] = "0.8.4-dev";
|
char versionString[] = "0.8.4-dev";
|
||||||
|
|
||||||
|
|
||||||
|
@ -527,6 +527,10 @@ bool handleSet(AsyncWebServerRequest *request, String req)
|
|||||||
//toggle receive UDP direct notifications
|
//toggle receive UDP direct notifications
|
||||||
pos = req.indexOf("RN=");
|
pos = req.indexOf("RN=");
|
||||||
if (pos > 0) receiveNotifications = (req.charAt(pos+3) != '0');
|
if (pos > 0) receiveNotifications = (req.charAt(pos+3) != '0');
|
||||||
|
|
||||||
|
//receive live data via UDP/Hyperion
|
||||||
|
pos = req.indexOf("RD=");
|
||||||
|
if (pos > 0) receiveDirect = (req.charAt(pos+3) != '0');
|
||||||
|
|
||||||
//toggle nightlight mode
|
//toggle nightlight mode
|
||||||
bool aNlDef = false;
|
bool aNlDef = false;
|
||||||
@ -665,14 +669,9 @@ bool handleSet(AsyncWebServerRequest *request, String req)
|
|||||||
overlayRefreshedTime = 0;
|
overlayRefreshedTime = 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
pos = req.indexOf("NM="); //mode, 1 countdown
|
//mode, 1 countdown
|
||||||
if (pos > 0) {
|
pos = req.indexOf("NM=");
|
||||||
countdownMode = true;
|
if (pos > 0) countdownMode = (req.charAt(pos+3) != '0');
|
||||||
if (req.indexOf("NM=0") > 0)
|
|
||||||
{
|
|
||||||
countdownMode = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pos = req.indexOf("U0="); //user var 0
|
pos = req.indexOf("U0="); //user var 0
|
||||||
if (pos > 0) {
|
if (pos > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user