From baa1b8e3c1d6c46dd33af469a0153c3857f1e31b Mon Sep 17 00:00:00 2001 From: Fariz Alemuda Date: Wed, 2 Dec 2020 09:58:16 +0700 Subject: [PATCH] fix the restricted subs topic to the right one --- src/AntaresESP8266MQTT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AntaresESP8266MQTT.cpp b/src/AntaresESP8266MQTT.cpp index ed13f0d..b33c88d 100755 --- a/src/AntaresESP8266MQTT.cpp +++ b/src/AntaresESP8266MQTT.cpp @@ -19,7 +19,7 @@ void AntaresESP8266MQTT::setMqttServer() { } void AntaresESP8266MQTT::checkMqttConnection() { - _subscriptionTopic = "/oneM2M/req/" + _accessKey + "/antares-cse/json"; + _subscriptionTopic = "/oneM2M/resp/antares-cse/" + _accessKey + "/json"; if(!client.connected()) { while(!client.connected()) { @@ -241,5 +241,5 @@ String AntaresESP8266MQTT::ipToString(IPAddress ip) { } void AntaresESP8266MQTT::setSubscriptionTopic() { - _subscriptionTopic = "/oneM2M/req/" + _accessKey + "/antares-cse/json"; + _subscriptionTopic = "/oneM2M/resp/antares-cse/" + _accessKey + "/json"; }