From bdc85b1179d3cb1127d5f4c9ca5ab5e5ea6a1a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Mon, 18 Jan 2016 15:22:50 +0100 Subject: [PATCH] fix led power message encoding --- plugins/deviceplugins/awattar/heatpump.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/deviceplugins/awattar/heatpump.cpp b/plugins/deviceplugins/awattar/heatpump.cpp index c9b78cad..f24f777b 100644 --- a/plugins/deviceplugins/awattar/heatpump.cpp +++ b/plugins/deviceplugins/awattar/heatpump.cpp @@ -76,9 +76,9 @@ void HeatPump::setLed(const bool &power) url.setPath("/a/led"); 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 { - m_ledReplies.append(m_coap->post(CoapRequest(url), "mode=0")); + m_ledReplies.append(m_coap->post(CoapRequest(url), QString("mode=0").toUtf8())); } }