|
EnigmaIOT
0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
|
Go to the documentation of this file.
13 #include <ESPAsyncWebServer.h>
15 #if defined(ARDUINO) && ARDUINO >= 100
46 void getNodes (AsyncWebServerRequest* request);
52 void nodeOp (AsyncWebServerRequest* request);
58 void getGwInfo (AsyncWebServerRequest* request);
64 void restartGw (AsyncWebServerRequest* request);
70 void resetGw (AsyncWebServerRequest* request);
85 void onNotFound (AsyncWebServerRequest* request);
107 char*
getNodeInfo (
Node* node,
int& resultCode,
char* nodeInfo,
size_t len);
132 #endif // GATEWAY_API_h
void onNotFound(AsyncWebServerRequest *request)
Processes unknown entry points or methods.
void getMaxNodes(AsyncWebServerRequest *request)
Processes max node number request.
GatewayAPI GwAPI
API instance.
Node * getNodeFromParam(AsyncWebServerRequest *request)
Gets node reference from request parameters.
void resetGw(AsyncWebServerRequest *request)
Processes gateway configuration reset request.
bool restartNodeRequest(Node *node)
Sends restart node message.
void getNodes(AsyncWebServerRequest *request)
Processes node list request.
void nodeOp(AsyncWebServerRequest *request)
Processes node information request.
const size_t RESPONSE_SIZE
Maximum API response size.
void begin()
Starts REST API web server.
void getNodeNumber(AsyncWebServerRequest *request)
Processes node number request.
char * getNodeInfo(Node *node, int &resultCode, char *nodeInfo, size_t len)
Builds node info.
void restartNode(AsyncWebServerRequest *request)
Processes node information request.
const char * deleteNode(Node *node, int &resultCode)
Processes node deletion request.
Class definition for a single sensor Node.
String methodToString(WebRequestMethodComposite method)
char * buildGwInfo(char *gwInfo, size_t len)
Builds gateway info.
void getGwInfo(AsyncWebServerRequest *request)
Processes gateway information request.
Library to build a gateway for EnigmaIoT system.
void restartGw(AsyncWebServerRequest *request)
Processes gateway restart request.
AsyncWebServer * server
Web server instance.