Working example code TCP 1883.

Dependencies:   EthernetInterface MQTT mbed-rtos mbed

Fork of K64F-RTOS-MQTT-Example by Mike Baylis

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers k64f.h Source File

k64f.h

00001 #ifndef K64F_H_
00002 #define K64F_H_
00003 
00004 typedef enum color {off, red, green, blue} color_t;
00005 
00006 Serial pc(USBTX, USBRX);
00007 DigitalOut redLED(LED_RED);
00008 DigitalOut greenLED(LED_GREEN);
00009 DigitalOut blueLED(LED_BLUE);
00010 InterruptIn switch2(SW2);
00011 InterruptIn switch3(SW3);
00012 
00013 #endif // K64F.H