fix led power message encoding
This commit is contained in:
parent
5faef5b7b5
commit
bdc85b1179
@ -76,9 +76,9 @@ void HeatPump::setLed(const bool &power)
|
|||||||
url.setPath("/a/led");
|
url.setPath("/a/led");
|
||||||
|
|
||||||
if (power) {
|
if (power) {
|
||||||
m_ledReplies.append(m_coap->post(CoapRequest(url), "mode=1"));
|
m_ledReplies.append(m_coap->post(CoapRequest(url), QString("mode=1").toUtf8()));
|
||||||
} else {
|
} else {
|
||||||
m_ledReplies.append(m_coap->post(CoapRequest(url), "mode=0"));
|
m_ledReplies.append(m_coap->post(CoapRequest(url), QString("mode=0").toUtf8()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user