small changes

added Radio DTU to /system
This commit is contained in:
lumapu 2023-11-19 17:24:58 +01:00
parent 7c2beab9a7
commit 34dff0b395
3 changed files with 12 additions and 3 deletions

View file

@ -548,6 +548,7 @@ class RestApi {
void getRadioCmtInfo(JsonObject obj) {
obj[F("en")] = (bool) mConfig->cmt.enabled;
obj[F("isconnected")] = mRadioCmt->isConnected();
obj[F("sn")] = String(mRadioCmt->getDTUSn(), HEX);
}
#endif
@ -555,7 +556,7 @@ class RestApi {
obj[F("en")] = (bool) mConfig->nrf.enabled;
obj[F("isconnected")] = mRadioNrf->isChipConnected();
obj[F("dataRate")] = mRadioNrf->getDataRate();
//obj[F("isPVariant")] = mRadioNrf->isPVariant();
obj[F("sn")] = String(mRadioCmt->getDTUSn(), HEX);
}
void getSerial(JsonObject obj) {