Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:iot:examples:smartventilator [2018/05/11 13:27]
rim.puks
en:iot:examples:smartventilator [2018/12/27 12:53] (current)
Line 133: Line 133:
  
   digitalWrite(16,​HIGH);​   digitalWrite(16,​HIGH);​
-  iot.publishMsg("​temp",​buf);​+  iot.publishMsgTo("Itt/​tester/​001/​temp",​buf,true); // First parameteris the topic to send
  delay(2000);​  delay(2000);​
   digitalWrite(16,​LOW);​   digitalWrite(16,​LOW);​
  
  String(h).toCharArray(buf,​10);​  String(h).toCharArray(buf,​10);​
-  iot.publishMsg("hum",​buf);​+  iot.publishMsgTo("Itt/​tester/​001/​hue",buf,true);
  delay(2000);​  delay(2000);​
 } }
 </​code>​ </​code>​
  
en/iot/examples/smartventilator.txt ยท Last modified: 2018/12/27 12:53 (external edit)
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