From 37745c9270be5e2769c2c1a99c332bc4731c3b26 Mon Sep 17 00:00:00 2001 From: lucian Date: Thu, 14 Feb 2019 00:15:47 +0200 Subject: [PATCH] Add support to extend pages through virtual _setupPage method --- src/AutoConnect.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AutoConnect.h b/src/AutoConnect.h index 909027e..f710be3 100644 --- a/src/AutoConnect.h +++ b/src/AutoConnect.h @@ -240,7 +240,7 @@ class AutoConnect { bool _loadAvailCredential(); void _stopPortal(); bool _classifyHandle(HTTPMethod mothod, String uri); - PageElement* _setupPage(String uri); + virtual PageElement* _setupPage(String uri); /** Request handlers implemented by Page Builder */ String _induceConnect(PageArgument& args); @@ -268,7 +268,7 @@ class AutoConnect { PageBuilder* _responsePage; PageElement* _currentPageElement; - + /** configurations */ AutoConnectConfig _apConfig; struct station_config _credential;