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.
k64f.h
- Committer:
- root@developer-sjc-cyan-compiler.local.mbed.org
- Date:
- 2016-11-17
- Revision:
- 4:4e31afefdf81
- Parent:
- 0:73334e2a82be
File content as of revision 4:4e31afefdf81:
#ifndef K64F_H_ #define K64F_H_ typedef enum color {off, red, green, blue} color_t; //Serial pc(USBTX, USBRX); DigitalOut redLED(LED_RED); DigitalOut greenLED(LED_GREEN); DigitalOut blueLED(LED_BLUE); InterruptIn switch2(SW2); InterruptIn switch3(SW3); #endif // K64F.H