This example program uses HiveMQ Broker (http://www.mqtt-dashboard.com/index.html) to both publish andsubscribe to topics.

Dependencies:   WNCInterface mbed-rtos mbed

See the README for details on this example program. NOTE: When started, the program can take up to 40 seconds before it will respond. This delay is the time required for the WNC Data Module to connect with the network.

Committer:
JMF
Date:
Wed Sep 21 17:32:51 2016 +0000
Revision:
0:73334e2a82be
Initial Commit;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JMF 0:73334e2a82be 1 #ifndef K64F_H_
JMF 0:73334e2a82be 2 #define K64F_H_
JMF 0:73334e2a82be 3
JMF 0:73334e2a82be 4 typedef enum color {off, red, green, blue} color_t;
JMF 0:73334e2a82be 5
JMF 0:73334e2a82be 6 //Serial pc(USBTX, USBRX);
JMF 0:73334e2a82be 7 DigitalOut redLED(LED_RED);
JMF 0:73334e2a82be 8 DigitalOut greenLED(LED_GREEN);
JMF 0:73334e2a82be 9 DigitalOut blueLED(LED_BLUE);
JMF 0:73334e2a82be 10 InterruptIn switch2(SW2);
JMF 0:73334e2a82be 11 InterruptIn switch3(SW3);
JMF 0:73334e2a82be 12
JMF 0:73334e2a82be 13 #endif // K64F.H
JMF 0:73334e2a82be 14