| 
									
										
										
										
											2018-02-26 00:11:31 +00:00
										 |  |  | #ifndef APStatus_h
 | 
					
						
							|  |  |  | #define APStatus_h
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-11 16:44:29 +00:00
										 |  |  | #if defined(ESP8266)
 | 
					
						
							|  |  |  |   #include <ESP8266WiFi.h>
 | 
					
						
							|  |  |  |   #include <ESPAsyncTCP.h>
 | 
					
						
							|  |  |  | #elif defined(ESP_PLATFORM)
 | 
					
						
							|  |  |  |   #include <WiFi.h>
 | 
					
						
							|  |  |  |   #include <AsyncTCP.h>
 | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-26 00:11:31 +00:00
										 |  |  | #include <ESPAsyncWebServer.h>
 | 
					
						
							|  |  |  | #include <ArduinoJson.h>
 | 
					
						
							|  |  |  | #include <AsyncJson.h>
 | 
					
						
							|  |  |  | #include <IPAddress.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-01 10:35:23 +01:00
										 |  |  | #define AP_STATUS_SERVICE_PATH "/rest/apStatus"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-26 00:11:31 +00:00
										 |  |  | class APStatus { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   public: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     APStatus(AsyncWebServer *server); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   private: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     AsyncWebServer* _server; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     void apStatus(AsyncWebServerRequest *request); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // end APStatus_h
 |