improvement: use LoRa WX icon when using BME
This commit is contained in:
parent
c8cde0a404
commit
d16e407269
|
|
@ -87,7 +87,6 @@ namespace GPS_Utils {
|
|||
} else {}
|
||||
|
||||
beaconPacket += ":=" + stationLatitude + Config.beacon.overlay + stationLongitude + Config.beacon.symbol;
|
||||
beaconPacket += Config.beacon.comment;
|
||||
|
||||
return beaconPacket;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,10 +108,11 @@ namespace Utils {
|
|||
|
||||
if (Config.bme.active) {
|
||||
String sensorData = BME_Utils::readDataSensor();
|
||||
beaconPacket = iGateBeaconPacket.substring(0,iGateBeaconPacket.indexOf(":=")+20) + "_" + sensorData + iGateBeaconPacket.substring(iGateBeaconPacket.indexOf(":=")+21);
|
||||
|
||||
beaconPacket = iGateBeaconPacket + sensorData + Config.beacon.comment;
|
||||
secondaryBeaconPacket = iGateLoRaBeaconPacket + sensorData + Config.beacon.comment;
|
||||
} else {
|
||||
beaconPacket = iGateBeaconPacket;
|
||||
beaconPacket = iGateBeaconPacket + Config.beacon.comment;
|
||||
secondaryBeaconPacket = iGateLoRaBeaconPacket + Config.beacon.comment;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -158,6 +158,10 @@ namespace WEB_Utils {
|
|||
Config.lowPowerMode = request->hasParam("other.lowPowerMode", true);
|
||||
Config.lowVoltageCutOff = request->getParam("other.lowVoltageCutOff", true)->value().toDouble();
|
||||
|
||||
if (Config.bme.active) {
|
||||
Config.beacon.symbol = "_";
|
||||
}
|
||||
|
||||
Config.writeFile();
|
||||
|
||||
AsyncWebServerResponse *response = request->beginResponse(302, "text/html", "");
|
||||
|
|
|
|||
Loading…
Reference in New Issue