Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Dec 30, 2023
1 parent 7da7e9e commit 22f6226
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ru/r2cloud/device/LoraAtBleDevice.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public DeviceStatus getStatus() {

//TODO update rrd graphs
public void updateStatus(LoraAtDeviceStatus status) {
LOG.info("[{}] signal: {}", id, status.getBluetoothRssi());
LOG.info("[{}] status: {}", id, status.toString());
this.batteryLevel = null;
this.signalLevel = status.getBluetoothRssi();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,9 @@ public void setBatteryCurrent(int batteryCurrent) {
this.batteryCurrent = batteryCurrent;
}

@Override
public String toString() {
return "bluetoothRssi=" + bluetoothRssi + ", sx127xRawTemperature=" + sx127xRawTemperature + ", solarVoltage=" + solarVoltage + ", solarCurrent=" + solarCurrent + ", batteryVoltage=" + batteryVoltage + ", batteryCurrent=" + batteryCurrent;
}

}

0 comments on commit 22f6226

Please sign in to comment.