From 4c3c546c822251c70851f01dd39f746215d72930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 15 Mar 2016 00:52:39 +0100 Subject: [PATCH] fix CoAP notifications --- libguh/coap/coap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libguh/coap/coap.cpp b/libguh/coap/coap.cpp index 79b4c6db..2f5c0214 100644 --- a/libguh/coap/coap.cpp +++ b/libguh/coap/coap.cpp @@ -304,7 +304,7 @@ void Coap::sendRequest(CoapReply *reply, const bool &lookedUp) if (reply->observation() && reply->requestMethod() == CoapPdu::Get) { if (reply->observationEnable()) { // Option number 6 - pdu.addOption(CoapOption::Observe, QByteArray::number(0)); + pdu.addOption(CoapOption::Observe, 0); m_observeResources.insert(pdu.token(), CoapObserveResource(reply->request().url(), pdu.token())); } else { // if disable, we should use the sam token as the notifications