未验证 提交 d6b383f8 编写于 作者: M Me No Dev 提交者: GitHub

Merge pull request #4429 from Bmooij/feature/Add_flash_helper_constructor_to_Uri

Add flash helper constructor to Uri
......@@ -32,7 +32,7 @@ void setup(void) {
Serial.println("MDNS responder started");
}
server.on("/", []() {
server.on(F("/"), []() {
server.send(200, "text/plain", "hello from esp32!");
});
......
......@@ -12,6 +12,7 @@ class Uri {
public:
Uri(const char *uri) : _uri(uri) {}
Uri(const String &uri) : _uri(uri) {}
Uri(const __FlashStringHelper *uri) : _uri(String(uri)) {}
virtual ~Uri() {}
virtual Uri* clone() const {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册