mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-09 06:01:37 +02:00
0.8.66
* added support for other regions - untested #1271 * fix generation of DTU-ID; was computed twice without reset if two radios are enabled
This commit is contained in:
parent
97d74d3090
commit
dc696d727f
14 changed files with 252 additions and 129 deletions
|
@ -268,6 +268,8 @@ class RestApi {
|
|||
obj[F("menu_protEn")] = (bool) (strlen(mConfig->sys.adminPwd) > 0);
|
||||
obj[F("cst_lnk")] = String(mConfig->plugin.customLink);
|
||||
obj[F("cst_lnk_txt")] = String(mConfig->plugin.customLinkText);
|
||||
obj[F("region")] = mConfig->sys.region;
|
||||
obj[F("timezone")] = mConfig->sys.timezone;
|
||||
|
||||
#if defined(ESP32)
|
||||
obj[F("esp_type")] = F("ESP32");
|
||||
|
@ -651,6 +653,9 @@ class RestApi {
|
|||
obj[F("fcsb")] = mConfig->cmt.pinFcsb;
|
||||
obj[F("gpio3")] = mConfig->cmt.pinIrq;
|
||||
obj[F("en")] = (bool) mConfig->cmt.enabled;
|
||||
std::pair<uint16_t, uint16_t> range = mRadioCmt->getFreqRangeMhz();
|
||||
obj[F("freq_min")] = range.first;
|
||||
obj[F("freq_max")] = range.second;
|
||||
}
|
||||
|
||||
void getRadioCmtInfo(JsonObject obj) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue