-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi,
I'm trying to activate local MQTT on my SolarFlow 2400 AC based on your description:
curl --location '192.168.178.192/rpc' \
--header 'Content-Type: application/json' \
--data '{"sn": "HOA1xxxxxxxxx","method": "HA.Mqtt.SetConfig","params": {"config": {"enable": true,"server": "192.168.178.99","port": 1883,"protocol": "mqtt","username": "myuser","password": "mypassword"}}}'
My Json body in pretty:
{
"sn": "HOA1xxxxxxxxx",
"method": "HA.Mqtt.SetConfig",
"params": {
"config": {
"enable": true,
"server": "192.168.178.99",
"port": 1883,
"protocol": "mqtt",
"username": "myuser",
"password": "mypassword"
}
}
}
The majority of the time, I'm just getting an Error (Connection Reset).
Shortly after retrieving the MQTT config (via curl --location '192.168.178.192/rpc?method=HA.Mqtt.GetConfig') I'm able to get a response from the POST request above.
The response is:
HTTP Code 400
Body:
{
"timestamp": 1758019933,
"messageId": 19,
"error": "Invalid content length, The maximum request length is 256",
"code": 400
}
How can I enable local MQTT?
Firmware of the device is V1.0.6
Metadata
Metadata
Assignees
Labels
No labels