Untitled
unknown
plain_text
a year ago
294 B
5
Indexable
Never
bool on = true; server.on("/get/scan", HTTP_GET, [](AsyncWebServerRequest *request){ String onParam = request->arg("on"); on = onParam.toInt() == 1; String response = "{\"modulation\":\"Modulation_" + String(on) + "\"}"; request->send(200, "application/json", response); });