Skip to content

Commit

Permalink
asyncweb: move to mathieucarbou/AsyncTCP
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Jan 6, 2025
1 parent 90583f2 commit da841f8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
fqbn: esp32:esp32:esp32cam
libraries: |
- source-path: ./
- source-url: https://github.com/me-no-dev/AsyncTCP.git
version: 58cbe1fabe78977e3140391c01c03f0cb51e347c
- source-url: https://github.com/me-no-dev/ESPAsyncWebServer.git
version: 7f3753454b1f176c4b6d6bcd1587a135d95ca63c
- name: Async TCP
- name: ESP Async WebServer
# https://github.com/mathieucarbou/AsyncTCP
# https://github.com/mathieucarbou/ESPAsyncWebServer
- name: Build docs
run: docs/build.sh
- name: Deploy docs
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ISC License

Copyright (c) 2020-2024, Junxiao Shi
Copyright (c) 2020-2025, Junxiao Shi

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
4 changes: 2 additions & 2 deletions examples/AsyncCam/handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ rewriteFrontpage(const String& var) {
void
addRequestHandlers() {
server.on("/", HTTP_GET, [](AsyncWebServerRequest* request) {
request->send_P(200, "text/html", reinterpret_cast<const uint8_t*>(FRONTPAGE),
sizeof(FRONTPAGE), rewriteFrontpage);
request->send(200, "text/html", reinterpret_cast<const uint8_t*>(FRONTPAGE), sizeof(FRONTPAGE),
rewriteFrontpage);
});

server.on("/robots.txt", HTTP_GET, [](AsyncWebServerRequest* request) {
Expand Down
10 changes: 7 additions & 3 deletions src/esp32cam-asyncweb.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include "esp32cam.h"

#include <ESPAsyncWebServer.h>
#include <freertos/queue.h>
#include <freertos/task.h>
#include <freertos/FreeRTOS.h>
#include <freertos/idf_additions.h>

#ifdef ESP32CAM_ASYNCWEB_LOGGER
#define ESP32CAM_ASYNCWEB_LOG(fmt, ...) \
Expand All @@ -22,7 +22,7 @@
namespace esp32cam {
/**
* @brief esp32cam integration with ESPAsyncWebServer library.
* @sa https://github.com/me-no-dev/ESPAsyncWebServer
* @sa https://github.com/mathieucarbou/ESPAsyncWebServer
*/
namespace asyncweb {

Expand Down Expand Up @@ -103,6 +103,10 @@ class StillResponse : public AsyncAbstractResponse {
*
* To perform authentication or other operations before image capture, create another HTTP handler
* to do these, and then call this function.
*
* @bug
* This handler is currently broken: ESPAsyncWebServer expects request->send(response) to be
* called before this function returns; otherwise it will generate 501 response.
*/
inline void
handleStill(AsyncWebServerRequest* request) {
Expand Down

0 comments on commit da841f8

Please sign in to comment.