Skip to content

Commit

Permalink
Update api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Blueforcer authored May 1, 2024
1 parent afa5b5a commit 7a16e89
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,14 @@ Directly transition to a desired app using its name.

| MQTT Topic | HTTP URL | Payload/Body | HTTP Method |
| ---------------------------- | ---------------------------------- | ---------------- | ----------- |
| `[PREFIX]/switch` | `http://[IP]/api/switch` | `{"name":"time"}` | POST |
| `[PREFIX]/switch` | `http://[IP]/api/switch` | `{"name":"Time"}` | POST |

**Built-in App Names**:
- `time`
- `date`
- `temperature`
- `humidity`
- `battery`
- `Time`
- `Date`
- `Temperature`
- `Humidity`
- `Battery`

For custom apps, employ the name you designated in the topic or HTTP parameter. In MQTT, if `[PREFIX]/custom/test` is your topic, then `test` would be the app's name.

Expand Down

0 comments on commit 7a16e89

Please sign in to comment.