fix the restricted subs topic to the right one

This commit is contained in:
Fariz Alemuda 2020-12-02 09:58:16 +07:00
parent dd109cf006
commit baa1b8e3c1

View File

@ -19,7 +19,7 @@ void AntaresESP8266MQTT::setMqttServer() {
} }
void AntaresESP8266MQTT::checkMqttConnection() { void AntaresESP8266MQTT::checkMqttConnection() {
_subscriptionTopic = "/oneM2M/req/" + _accessKey + "/antares-cse/json"; _subscriptionTopic = "/oneM2M/resp/antares-cse/" + _accessKey + "/json";
if(!client.connected()) { if(!client.connected()) {
while(!client.connected()) { while(!client.connected()) {
@ -241,5 +241,5 @@ String AntaresESP8266MQTT::ipToString(IPAddress ip) {
} }
void AntaresESP8266MQTT::setSubscriptionTopic() { void AntaresESP8266MQTT::setSubscriptionTopic() {
_subscriptionTopic = "/oneM2M/req/" + _accessKey + "/antares-cse/json"; _subscriptionTopic = "/oneM2M/resp/antares-cse/" + _accessKey + "/json";
} }