Adding web api function declaration files
This commit is contained in:
parent
44e47f2ef8
commit
8110ae00fc
12
src/app/webApi.cpp
Normal file
12
src/app/webApi.cpp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include "SAB.h"
|
||||||
|
#include "webApi.h"
|
||||||
|
|
||||||
|
boolean helloServerApi(WEBServerManager::HttpRequestData& HRD, WiFiClient* wc, void* pData)
|
||||||
|
{
|
||||||
|
SAB *sab = (SAB *)pData;
|
||||||
|
Serial.println("Before");
|
||||||
|
wc->print(F("HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n<!DOCTYPE HTML>\r\n<html>\r\n<p>Hello Client !!!</p>\r\n</html>"));
|
||||||
|
Serial.println("After");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
7
src/app/webApi.h
Normal file
7
src/app/webApi.h
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#ifndef WEBAPI_H
|
||||||
|
#define WEBAPI_H
|
||||||
|
#include "WebServerManager.h"
|
||||||
|
|
||||||
|
boolean helloServerApi(WEBServerManager::HttpRequestData&, WiFiClient*, void*);
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user