mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-19 19:11:37 +02:00
small changes
added Radio DTU to /system
This commit is contained in:
parent
7c2beab9a7
commit
34dff0b395
3 changed files with 12 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue