Last active
August 29, 2015 14:11
-
-
Save andreareginato/54c813d030ef9ff4b220 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MQTT server address | |
byte server[] = { 178, 62, 108, 47 }; | |
// Yun definition | |
YunClient yun; | |
// subscription callback | |
void callback(char* topic, byte* payload, unsigned int length); | |
// mqtt client connection | |
PubSubClient client(server, 1883, callback, yun); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment