Commit ae240a39 authored by Bob Mooij's avatar Bob Mooij

Add flash helper constructor to Uri

parent 1287c529
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment