Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot-open:remotelab:sut:generalpurpose2:u7 [2019/08/11 15:19] pczekalskien:iot-open:remotelab:sut:generalpurpose2:u7 [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 60: Line 60:
 // MQTT messages // MQTT messages
 #define MQTTClientName "myVREL2clientname" #define MQTTClientName "myVREL2clientname"
-#define servoTopic ...<some topic for servo>... // give it some unique topic i.e. including your name +#define servoTopic ...<some topic for servo>... // give it some unique topic  
-#define fanTopic   ...<some topic for fan>... // give it some unique topic i.e. including your name+                                                // i.e. including your name 
 +#define fanTopic   ...<some topic for fan>...   // give it some unique topic  
 +                                                // i.e. including your name
  
 //MQTT last will //MQTT last will
-#define lastWillTopic ..<some topic for exposing state and last will>...   // give it some unique topic i.e. including your name   // give it some unique topic i.e. including your name+#define lastWillTopic ..<some topic for exposing state and last will>...    
 +                                                // give it some unique topic  
 +                                                // i.e. including your name
 #define lastWillMessage "off" #define lastWillMessage "off"
 #define mqttWelcomeMessage "on" #define mqttWelcomeMessage "on"
Line 136: Line 140:
       sprintf(buffer,"%4d PWM",fan);       sprintf(buffer,"%4d PWM",fan);
       lcd.print(buffer);       lcd.print(buffer);
-  }+  }  // give it some unique topic i.e. including your name
 } }
 </code> </code>
en/iot-open/remotelab/sut/generalpurpose2/u7.1565536764.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0