MCPcopy Create free account
hub / github.com/SmingHub/Sming / onStream

Function onStream

samples/WebcamServer/app/application.cpp:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void onStream(HttpRequest& request, HttpResponse& response)
53{
54 Serial.println(_F("perform onCapture()"));
55
56 MultipartStream* stream = new MultipartStream(snapshotProducer);
57 response.sendDataStream(stream, F("multipart/x-mixed-replace; boundary=") + stream->getBoundary());
58}
59
60void onFavicon(HttpRequest& request, HttpResponse& response)
61{

Callers

nothing calls this directly

Calls 4

printlnMethod · 0.80
getBoundaryMethod · 0.80
FFunction · 0.50
sendDataStreamMethod · 0.45

Tested by

no test coverage detected