Skip to content

Commit 55a812f

Browse files
authored
Update ESP32-CAM_MyBlockly_JSON.ino
1 parent 45ed62f commit 55a812f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ESP32-CAM_MyBlockly_JSON/ESP32-CAM_MyBlockly_JSON.ino

+6-4
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,12 @@ void ExecuteCommand()
414414
ledcWrite(8,speedL);
415415
}
416416
}
417-
else if (cmd=="getstill")
418-
{
419-
Feedback=Feedback="{\"data\":\""+getstill()+"\"}";
420-
}
417+
else if (cmd=="getstill") {
418+
if (P1=="img")
419+
Feedback=Feedback="{\"data\":\"\<img id=\'getstill\' src=\'"+getstill()+"\'\>\"}";
420+
else
421+
Feedback=Feedback="{\"data\":\""+getstill()+"\"}";
422+
}
421423
else if (cmd=="sendCapturedImageToLineNotify") {
422424
Feedback=sendCapturedImageToLineNotify(P1);
423425
Feedback="{\"data\":\""+Feedback+"\"}";

0 commit comments

Comments
 (0)