add MQTT channel support

This commit is contained in:
hehaijunandhenry
2026-04-29 11:18:16 +08:00
parent a36472b55f
commit 5c0492900e
32 changed files with 1933 additions and 13 deletions
+2
View File
@@ -30,6 +30,7 @@ var channelCatalog = []channelCatalogItem{
{Name: "maixcam", ConfigKey: "maixcam"},
{Name: "matrix", ConfigKey: "matrix"},
{Name: "irc", ConfigKey: "irc"},
{Name: "mqtt", ConfigKey: "mqtt"},
}
type channelConfigResponse struct {
@@ -106,6 +107,7 @@ var channelSecretFieldMap = map[string][]string{
"whatsapp": {},
"whatsapp_native": {},
"maixcam": {},
"mqtt": {"username", "password"},
}
func buildChannelConfigResponse(cfg *config.Config, item channelCatalogItem) channelConfigResponse {