Working example code TCP 1883.
Dependencies: EthernetInterface MQTT mbed-rtos mbed
Fork of K64F-RTOS-MQTT-Example by
k64f.h@2:005cdf4e8fb3, 2017-03-20 (annotated)
- Committer:
- ryanqfeeney
- Date:
- Mon Mar 20 17:10:21 2017 +0000
- Revision:
- 2:005cdf4e8fb3
- Parent:
- 0:9796509d718e
Working with board and node server.; Change the host to the local; ip of the computer running the server
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
msbaylis | 0:9796509d718e | 1 | #ifndef K64F_H_ |
msbaylis | 0:9796509d718e | 2 | #define K64F_H_ |
msbaylis | 0:9796509d718e | 3 | |
msbaylis | 0:9796509d718e | 4 | typedef enum color {off, red, green, blue} color_t; |
msbaylis | 0:9796509d718e | 5 | |
msbaylis | 0:9796509d718e | 6 | Serial pc(USBTX, USBRX); |
msbaylis | 0:9796509d718e | 7 | DigitalOut redLED(LED_RED); |
msbaylis | 0:9796509d718e | 8 | DigitalOut greenLED(LED_GREEN); |
msbaylis | 0:9796509d718e | 9 | DigitalOut blueLED(LED_BLUE); |
msbaylis | 0:9796509d718e | 10 | InterruptIn switch2(SW2); |
msbaylis | 0:9796509d718e | 11 | InterruptIn switch3(SW3); |
msbaylis | 0:9796509d718e | 12 | |
msbaylis | 0:9796509d718e | 13 | #endif // K64F.H |