Advertisement
Sebuahhobi98

aes

Sep 25th, 2022
1,539
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*Arduino*/
  2. server.on("/onLoadWifi", HTTP_POST, [](AsyncWebServerRequest * request) {
  3.     Serial.println("onLoadWifi");
  4.     AsyncResponseStream *response = request->beginResponseStream("application/json");
  5.     DynamicJsonDocument data(2048);
  6.     data["code"] = 200;
  7.     data["gateway"] = decrypt(gateway);
  8.  
  9.     serializeJson(data, *response);
  10.     request->send(response);
  11. });
  12.  
  13. /*Flutter*/
  14. //aespack: ^0.0.3
  15. Output: žée
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement