Here is the documentation for the provided APIs:
---
### API Endpoints:
#### 1. One Click Update Schema
- Endpoint: `/oneclickupdateschema`
- Method: `HTTP GET`
Parameters:
- `apikey` (String): API key for authentication.
- `schemaname` (String): Name of the schema to update.
Response:
- `status` (String): Status of the update operation.
- `value` (String): Updated value.
#### 2. Update Schema
- Endpoint: `/updateschema`
- Method: `HTTP GET`
Parameters:
- `apikey` (String): API key for authentication.
- Dynamic parameters:
- `ch1` to `ch12`: Values to update for channels 1 to 12.
Response:
- `status` (String): Status of the update operation.
- `value` (String): Updated value for each channel.
#### 3. Monitoring
- Endpoint: `/monitoring`
- Method: `HTTP GET`
Parameters:
- `key` (String): API key for authentication.
Response:
- Monitoring data including:
- Device information (name, API key, device ID, etc.)
- System information (heap size, CPU frequency, etc.)
- Sensor information (temperature, etc.)
#### 4. Configuration
- Endpoint: `/config`
- Method: `HTTP GET`
Parameters: None
Response:
- HTML form to configure various parameters including device name, API key, user ID, SSID, password, update type, and key.
#### 5. System Info Update
- Endpoint: `/systeminfoupdate`
- Method: `HTTP GET`
Parameters:
- `updatetype` (String): Type of update (full or network).
- `key` (String): API key for authentication.
- Parameters for full update:
- `apikey`, `name`, `userid`, `deviceid`, `ssid`, `pass`.
- Parameters for network update:
- `name`, `ssid`, `pass`.
Response:
- `status` (String): Status of the update operation.
- `value` (String): Updated value.
#### 6. Set Name
- Endpoint: `/setname`
- Method: `HTTP GET`
Parameters:
- `name` (String): New name for the device.
Response:
- `status` (String): Status of the update operation.
- `value` (String): Updated name.
#### 7. Set Reboot Time
- Endpoint: `/setreboottime`
- Method: `HTTP GET`
Parameters:
- `time` (String): New reboot time.
Response:
- `status` (String): Status of the update operation.
- `value` (String): Updated reboot time.
#### 8. Index
- Endpoint: `/index`
- Method: `HTTP GET`
Response:
- HTML content for the index page.
#### 9. Restart
- Endpoint: `/restart`
- Method: `HTTP GET`
Response:
- `status` (String): Status of the restart operation.
- `value` (String): Restart status.
#### 10. Update Firmware
- Endpoint: `/updatefirmware`
- Method: `HTTP GET`
Response:
- HTML content for updating firmware.
#### 11. Firmware Upload
- Endpoint: `/update`
- Method: `HTTP POST`
Response:
- `OK` if firmware update is successful, `FAIL` otherwise.
---
This documentation provides details about each API endpoint, the parameters they accept, and the response format for each operation. Ensure proper authentication and parameter handling while using these APIs.