mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-03-29 13:34:59 +02:00
Move parsing of serial from web request to separate method
This commit is contained in:
@@ -22,12 +22,7 @@ void WebApiEventlogClass::onEventlogStatus(AsyncWebServerRequest* request)
|
||||
|
||||
AsyncJsonResponse* response = new AsyncJsonResponse();
|
||||
auto& root = response->getRoot();
|
||||
|
||||
uint64_t serial = 0;
|
||||
if (request->hasParam("inv")) {
|
||||
String s = request->getParam("inv")->value();
|
||||
serial = strtoll(s.c_str(), NULL, 16);
|
||||
}
|
||||
auto serial = WebApi.parseSerialFromRequest(request);
|
||||
|
||||
AlarmMessageLocale_t locale = AlarmMessageLocale_t::EN;
|
||||
if (request->hasParam("locale")) {
|
||||
|
||||
Reference in New Issue
Block a user