Add flash helper constructor to Uri
This commit is contained in:
parent
1287c52933
commit
ae240a3902
@ -32,7 +32,7 @@ void setup(void) {
|
|||||||
Serial.println("MDNS responder started");
|
Serial.println("MDNS responder started");
|
||||||
}
|
}
|
||||||
|
|
||||||
server.on("/", []() {
|
server.on(F("/"), []() {
|
||||||
server.send(200, "text/plain", "hello from esp32!");
|
server.send(200, "text/plain", "hello from esp32!");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ class Uri {
|
|||||||
public:
|
public:
|
||||||
Uri(const char *uri) : _uri(uri) {}
|
Uri(const char *uri) : _uri(uri) {}
|
||||||
Uri(const String &uri) : _uri(uri) {}
|
Uri(const String &uri) : _uri(uri) {}
|
||||||
|
Uri(const __FlashStringHelper *uri) : _uri(String(uri)) {}
|
||||||
virtual ~Uri() {}
|
virtual ~Uri() {}
|
||||||
|
|
||||||
virtual Uri* clone() const {
|
virtual Uri* clone() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user