Pin config
This commit is contained in:
parent
5f42f66c02
commit
a968f09d73
@ -77,6 +77,14 @@ void WebApiDeviceClass::onDeviceAdminGet(AsyncWebServerRequest* request)
|
|||||||
batteryPinObj[F("rx")] = pin.battery_rx;
|
batteryPinObj[F("rx")] = pin.battery_rx;
|
||||||
batteryPinObj[F("tx")] = pin.battery_tx;
|
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();
|
response->setLength();
|
||||||
request->send(response);
|
request->send(response);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user