mirror of
				https://github.com/gabrielkheisa/antares-esp8266-mqtt.git
				synced 2025-11-04 06:49:22 +00:00 
			
		
		
		
	fix the restricted subs topic to the right one
This commit is contained in:
		@@ -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";
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user