reworked the WebUI-Websocket-Comm
This commit is contained in:
@@ -617,9 +617,9 @@ void Websocket_RefreshClientData_Status(uint32_t client_id, bool send_mapping)
|
||||
if (send_mapping)
|
||||
{
|
||||
const char mapping[] = "MAPPING_STATUS:"
|
||||
"SystemStatus;"
|
||||
"systemstatus;"
|
||||
"tankremain;"
|
||||
"Odometer;";
|
||||
"odometer;";
|
||||
|
||||
if (client_id > 0)
|
||||
webSocket.text(client_id, mapping);
|
||||
@@ -668,7 +668,6 @@ void Websocket_RefreshClientData_Static(uint32_t client_id, bool send_mapping)
|
||||
"tirewidth;"
|
||||
"tireratio;"
|
||||
"tiredia;"
|
||||
"DistancePerRevolution_mm;"
|
||||
"sourceselect;"
|
||||
"gpsbaud;"
|
||||
"cansource;"
|
||||
@@ -678,7 +677,7 @@ void Websocket_RefreshClientData_Static(uint32_t client_id, bool send_mapping)
|
||||
"showimpulse;"
|
||||
"showgps;"
|
||||
"showcan;"
|
||||
"BleedingPulses;";
|
||||
"bleedingpulses;";
|
||||
|
||||
if (client_id > 0)
|
||||
webSocket.text(client_id, mapping);
|
||||
@@ -697,7 +696,6 @@ void Websocket_RefreshClientData_Static(uint32_t client_id, bool send_mapping)
|
||||
temp.concat(String(LubeConfig.TireWidth_mm) + ";");
|
||||
temp.concat(String(LubeConfig.TireWidthHeight_Ratio) + ";");
|
||||
temp.concat(String(LubeConfig.RimDiameter_Inch) + ";");
|
||||
temp.concat(String(LubeConfig.DistancePerRevolution_mm) + ";");
|
||||
temp.concat(String(SpeedSourceString[LubeConfig.SpeedSource]) + ";");
|
||||
temp.concat(String(GPSBaudRateString[LubeConfig.GPSBaudRate]) + ";");
|
||||
temp.concat(String(CANSourceString[LubeConfig.CANSource]) + ";");
|
||||
|
Reference in New Issue
Block a user