mirror of
https://github.com/gabrielkheisa/antares-esp8266-mqtt.git
synced 2024-12-05 01:33:23 +07:00
fix the restricted subs topic to the right one
This commit is contained in:
parent
dd109cf006
commit
baa1b8e3c1
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user