Arduino training equivalents of LED "Blinky but using pub/sub and MQTT broker

Dependencies:   MQTT

mqtt-mbed-blinky.cpp

Committer:
gkutsy
Date:
2014-05-10
Revision:
0:9890d6036611
Child:
1:d55b95d9629b

File content as of revision 0:9890d6036611:


#include <PubSubClient.h>

const uint8_t server[]  = {107,170,104,14};
const uint16_t port     = 1883;

const char* username    = "d0esN't_maTT3r";
const char* password    = "kgrem1432342305896";
const char* clientId    = "ClientGratzi_8523";
const char* projectId   = "LoopProjectId";
const char* deviceName  = "mbed";
const char* jsonKV      = "{Value:ON}";

void callback(char *topic, byte *payload, unsigned int length) {//callback}

int main()
{
    
    
    return 0;
}