-
Clone the repository
-
Install dependencies
npm install
-
Update your path where this program cloned in services_install.js
-
Install Services
node services_install.js
-
GET /mppt
- List all MPPT -
DELETE /mppt/:mppt_sn"
- Delete mppt by mppt_sn -
POST /mppt
- Create a new mppt{ "mppt_sn":"exampleMPPT001", "mppt_ip":"200.0.0.0" }
GET /get-system-data
- Get mppt system data by ip mpptGET /get-user-network
- Get mppt user network by ip mppt
-
POST /set-reboot
- Set reboot mppt -
POST /set-factory-reset
- Set factory reset mppt -
POST /set-all-module-on
- Set module on -
POST /set-all-module-off
- Set module off -
POST /set-sync-system
- Set sync system -
POST /set-user-network
- Set user Network{ "default_ip": "192.168.0.0" , "ssid" : "wifi", "pass" : "pass", "ip" : "200.10.2.10", "gateway" : "200.10.2.1", "subnet" : "255.255.255.0", "server" : 1, "mode" : 2 }
Import the provided Postman Collection for testing the API endpoints.
- Open Postman
- Click on
Import
button - Select the file
Mppt control.postman_collection.json
from thepostman
directory - Start testing the endpoints
The Postman Collection file is located in the postman
directory and is named Mppt control.postman_collection.json
.