From 7a16e895ac70f2aa6cc24f24a96cc3bc0a5de1a7 Mon Sep 17 00:00:00 2001 From: Stephan <31169771+Blueforcer@users.noreply.github.com> Date: Wed, 1 May 2024 12:50:53 +0200 Subject: [PATCH] Update api.md --- docs/api.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/api.md b/docs/api.md index 8137c8d..ac1202a 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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.