curl -X POST "http://192.168.1.39/rpc" \
-H "Content-Type: application/json" \
-d '{
"sn": "......",
"method": "HA.Mqtt.SetConfig",
"params": {
"config": {
"enable": true,
"server": "192.168.1.88",
"port":1883,
"protocol":"mqtt",
"username": "....",
"password": "...."
}
}
}'
{"timestamp":1767596058,"messageId":1,"error":"Invalid content length, The maximum request length is 256","code":400}