Skip to content

Commit

Permalink
Pin config
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteSchm committed Mar 29, 2023
1 parent 5f42f66 commit a968f09
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/WebApi_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ void WebApiDeviceClass::onDeviceAdminGet(AsyncWebServerRequest* request)
batteryPinObj[F("rx")] = pin.battery_rx;
batteryPinObj[F("tx")] = pin.battery_tx;

JsonObject huaweiPinObj = curPin.createNestedObject("huawei");
huaweiPinObj[F("miso")] = pin.huawei_miso;
huaweiPinObj[F("mosi")] = pin.huawei_mosi;
huaweiPinObj[F("clk")] = pin.huawei_clk;
huaweiPinObj[F("irq")] = pin.huawei_irq;
huaweiPinObj[F("cs")] = pin.huawei_cs;
huaweiPinObj[F("power")] = pin.huawei_power;

response->setLength();
request->send(response);
}
Expand Down

0 comments on commit a968f09

Please sign in to comment.