Difference between revisions of "MQTT: Arduino install library untuk PubSubClient.h"

From OnnoWiki
Jump to navigation Jump to search
Line 7: Line 7:
 
bisa dengan
 
bisa dengan
  
  cd ~/sketchbook/libraries/
+
  cd ~/Downloads
 
  wget https://github.com/knolleary/pubsubclient/archive/master.zip
 
  wget https://github.com/knolleary/pubsubclient/archive/master.zip
  
Lakukan
 
  
cd ~/sketchbook/libraries/
+
Lebih baik add melalui menu Sketch > Include Library > Add .ZIP Library
unzip master.zip
 
mv pubsubclient-master pubsubclient
 
mv pubsubclient/src/* pubsubclient
 
sudo mv pubsubclient/ /usr/share/arduino/libraries/
 

Revision as of 07:08, 7 November 2018

MQTT membutuhkan library untuk PubSubClient.h

Download dari

https://github.com/knolleary/pubsubclient/archive/master.zip

bisa dengan

cd ~/Downloads
wget https://github.com/knolleary/pubsubclient/archive/master.zip


Lebih baik add melalui menu Sketch > Include Library > Add .ZIP Library