Skip to content

Instantly share code, notes, and snippets.

@andreareginato
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreareginato/54c813d030ef9ff4b220 to your computer and use it in GitHub Desktop.
Save andreareginato/54c813d030ef9ff4b220 to your computer and use it in GitHub Desktop.
// 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