Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Arduino*/
- server.on("/onLoadWifi", HTTP_POST, [](AsyncWebServerRequest * request) {
- Serial.println("onLoadWifi");
- AsyncResponseStream *response = request->beginResponseStream("application/json");
- DynamicJsonDocument data(2048);
- data["code"] = 200;
- data["gateway"] = decrypt(gateway);
- serializeJson(data, *response);
- request->send(response);
- });
- /*Flutter*/
- //aespack: ^0.0.3
- Output: ée
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement