Fix node type
This commit is contained in:
parent
ea3358ecb2
commit
91d885eae4
@ -8,9 +8,9 @@
|
||||
#include <map>
|
||||
#include <IPAddress.h>
|
||||
|
||||
#define NODE_TYPE_ID_UNDEFINED 0
|
||||
#define NODE_TYPE_ID_ESP8266 8266
|
||||
#define NODE_TYPE_ID_ESP32 32
|
||||
#define NODE_TYPE_ID_UNDEFINED 0
|
||||
#define NODE_TYPE_ID_ESP8266 82
|
||||
#define NODE_TYPE_ID_ESP32 32
|
||||
|
||||
/*********************************************************************************************\
|
||||
* NodeStruct
|
||||
|
@ -408,6 +408,10 @@ button {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#kn td {
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
|
||||
#lv {
|
||||
max-width: 600px;
|
||||
display: inline-block;
|
||||
|
@ -184,7 +184,7 @@
|
||||
</div>
|
||||
|
||||
<div id="nodes" class="modal">
|
||||
<div id="ndlt">Other WLED instances on network</div>
|
||||
<div id="ndlt">WLED instances</div>
|
||||
<div id="kn">Loading...</div><br>
|
||||
<button class="btn infobtn" onclick="loadNodes()">Refresh</button>
|
||||
<button class="btn infobtn" onclick="toggleNodes()">Close list</button><br>
|
||||
|
@ -568,9 +568,8 @@ function populateSegments(s)
|
||||
|
||||
function btype(b){
|
||||
switch (b) {
|
||||
case 1: return "ESP8266";
|
||||
case 32: return "ESP32";
|
||||
case 8266: return "ESP8266";
|
||||
case 82: return "ESP8266";
|
||||
}
|
||||
return "?";
|
||||
}
|
||||
@ -598,7 +597,7 @@ function populateNodes(i,n)
|
||||
if (nnodes == 0) cn += `No other instances found.`;
|
||||
cn += `<table class="infot">
|
||||
${urows}
|
||||
${inforow("Current node:",i.name)}
|
||||
${inforow("Current instance:",i.name)}
|
||||
</table>`;
|
||||
d.getElementById('kn').innerHTML = cn;
|
||||
}
|
||||
|
@ -188,7 +188,7 @@ void realtimeLock(uint32_t timeoutMs, byte md = REALTIME_MODE_GENERIC);
|
||||
void handleNotifications();
|
||||
void setRealtimePixel(uint16_t i, byte r, byte g, byte b, byte w);
|
||||
void refreshNodeList();
|
||||
void sendSysInfoUDP(uint8_t repeats=1);
|
||||
void sendSysInfoUDP();
|
||||
|
||||
//um_manager.cpp
|
||||
class Usermod {
|
||||
|
4142
wled00/html_ui.h
4142
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
@ -407,11 +407,9 @@ void refreshNodeList()
|
||||
/*********************************************************************************************\
|
||||
Broadcast system info to other nodes. (to update node lists)
|
||||
\*********************************************************************************************/
|
||||
void sendSysInfoUDP(uint8_t repeats)
|
||||
void sendSysInfoUDP()
|
||||
{
|
||||
if (!udpConnected || !repeats) {
|
||||
return;
|
||||
}
|
||||
if (!udp2Connected) return;
|
||||
|
||||
IPAddress ip = Network.localIP();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user