#include <GatewayAPI.h>
Definition at line 25 of file GatewayAPI.h.
◆ begin()
void GatewayAPI::begin |
( |
| ) |
|
◆ buildGwInfo()
char * GatewayAPI::buildGwInfo |
( |
char * |
gwInfo, |
|
|
size_t |
len |
|
) |
| |
|
protected |
Builds gateway info.
- Parameters
-
gwInfo | Gateway information JSON |
len | JSON length |
Definition at line 54 of file GatewayAPI.cpp.
◆ deleteNode()
const char * GatewayAPI::deleteNode |
( |
Node * |
node, |
|
|
int & |
resultCode |
|
) |
| |
|
protected |
Processes node deletion request.
- Parameters
-
node | Node to delete |
resultCode | Result code |
Definition at line 140 of file GatewayAPI.cpp.
◆ getGwInfo()
void GatewayAPI::getGwInfo |
( |
AsyncWebServerRequest * |
request | ) |
|
|
protected |
Processes gateway information request.
- Parameters
-
request | Gateway information request |
Definition at line 78 of file GatewayAPI.cpp.
◆ getMaxNodes()
void GatewayAPI::getMaxNodes |
( |
AsyncWebServerRequest * |
request | ) |
|
|
protected |
Processes max node number request.
- Parameters
-
request | Max node number request |
Definition at line 251 of file GatewayAPI.cpp.
◆ getNodeFromParam()
Node * GatewayAPI::getNodeFromParam |
( |
AsyncWebServerRequest * |
request | ) |
|
|
protected |
Gets node reference from request parameters.
- Parameters
-
request | Request with node parameter (NodeID, Name or MAC address) |
Definition at line 92 of file GatewayAPI.cpp.
◆ getNodeInfo()
char * GatewayAPI::getNodeInfo |
( |
Node * |
node, |
|
|
int & |
resultCode, |
|
|
char * |
nodeInfo, |
|
|
size_t |
len |
|
) |
| |
|
protected |
Builds node info.
- Parameters
-
node | Node to get info from |
resultCode | Result code |
nodeInfo | Node information JSON element |
len | JSON length |
Definition at line 155 of file GatewayAPI.cpp.
◆ getNodeNumber()
void GatewayAPI::getNodeNumber |
( |
AsyncWebServerRequest * |
request | ) |
|
|
protected |
Processes node number request.
- Parameters
-
request | Node number request |
Definition at line 46 of file GatewayAPI.cpp.
◆ getNodes()
void GatewayAPI::getNodes |
( |
AsyncWebServerRequest * |
request | ) |
|
|
protected |
Processes node list request.
- Parameters
-
Definition at line 325 of file GatewayAPI.cpp.
◆ nodeOp()
void GatewayAPI::nodeOp |
( |
AsyncWebServerRequest * |
request | ) |
|
|
protected |
Processes node information request.
- Parameters
-
request | Node information request |
Definition at line 219 of file GatewayAPI.cpp.
◆ onNotFound()
void GatewayAPI::onNotFound |
( |
AsyncWebServerRequest * |
request | ) |
|
|
protected |
Processes unknown entry points or methods.
- Parameters
-
Definition at line 378 of file GatewayAPI.cpp.
◆ resetGw()
void GatewayAPI::resetGw |
( |
AsyncWebServerRequest * |
request | ) |
|
|
protected |
Processes gateway configuration reset request.
- Parameters
-
request | Gateway configuration reset request |
Definition at line 292 of file GatewayAPI.cpp.
◆ restartGw()
void GatewayAPI::restartGw |
( |
AsyncWebServerRequest * |
request | ) |
|
|
protected |
Processes gateway restart request.
- Parameters
-
request | Gateway restart request |
Definition at line 259 of file GatewayAPI.cpp.
◆ restartNode()
void GatewayAPI::restartNode |
( |
AsyncWebServerRequest * |
request | ) |
|
|
protected |
Processes node information request.
- Parameters
-
request | Node information request |
Definition at line 198 of file GatewayAPI.cpp.
◆ restartNodeRequest()
bool GatewayAPI::restartNodeRequest |
( |
Node * |
node | ) |
|
|
protected |
Sends restart node message.
- Parameters
-
node | Node te send restart to |
Definition at line 194 of file GatewayAPI.cpp.
◆ server
AsyncWebServer* GatewayAPI::server |
|
protected |
The documentation for this class was generated from the following files: