Skip to content

Commit

Permalink
Fix documentation mismatch (#27)
Browse files Browse the repository at this point in the history
Update camera_streaming endpoint

- Update camera_streaming_http to accept both index.shtml and coral_micro_camera.html
- Doc fix in wifi_client example
  • Loading branch information
josecols authored Mar 22, 2023
1 parent c1c3500 commit c9f665b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/camera_streaming_http/camera_streaming_http.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ constexpr char kIndexFileName[] = "/coral_micro_camera.html";
constexpr char kCameraStreamUrlPrefix[] = "/camera_stream";

HttpServer::Content UriHandler(const char* uri) {
if (StrEndsWith(uri, "index.shtml")) {
if (StrEndsWith(uri, "index.shtml") ||
StrEndsWith(uri, "coral_micro_camera.html")) {
return std::string(kIndexFileName);
} else if (StrEndsWith(uri, kCameraStreamUrlPrefix)) {
// [start-snippet:jpeg]
Expand Down
2 changes: 1 addition & 1 deletion examples/wifi_client/wifi_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
//
// To build and flash from coralmicro root:
// bash build.sh
// python3 scripts/flashtool.py -e wifi_server
// python3 scripts/flashtool.py -e wifi_client

namespace coralmicro {
void Main() {
Expand Down

0 comments on commit c9f665b

Please sign in to comment.