
MQTT with CC3000 Wi-Fi interface
Dependencies: ADT7410 MQTToveCC3000 MbedJSONValue NVIC_set_all_priorities cc3000_hostdriver_mbedsocket2 mbed
Fork of cc3000_simple_socket_demo by
Revision 14:5f84f9ae168e, committed 2013-11-07
- Comitter:
- Kojto
- Date:
- Thu Nov 07 20:30:27 2013 +0000
- Parent:
- 13:4f08ef840b16
- Child:
- 15:af967b9898f8
- Commit message:
- - updated to the host driver rev 45; - using the new EthernetInterface
Changed in this revision
--- a/cc3000_hostdriver_mbedsocket.lib Wed Oct 16 21:15:29 2013 +0000 +++ b/cc3000_hostdriver_mbedsocket.lib Thu Nov 07 20:30:27 2013 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/Kojto/code/cc3000_hostdriver_mbedsocket/#960b73df5981 +http://mbed.org/users/Kojto/code/cc3000_hostdriver_mbedsocket/#50ab13d8f2dc
--- a/main.cpp Wed Oct 16 21:15:29 2013 +0000 +++ b/main.cpp Thu Nov 07 20:30:27 2013 +0000 @@ -28,11 +28,14 @@ /* cc3000 module declaration specific for user's board. Check also init() */ #if (MY_BOARD == WIGO) -cc3000 wifi(PTA16, PTA13, PTD0, SPI(PTD2, PTD3, PTC5), PORTA_IRQn); +cc3000 wifi(PTA16, PTA13, PTD0, SPI(PTD2, PTD3, PTC5)); Serial pc(USBTX, USBRX); #elif (MY_BOARD == WIFI_DIPCORTEX) -cc3000 wifi(p28, p27, p30, SPI(p21, p14, p37), PIN_INT0_IRQn); +cc3000 wifi(p28, p27, p30, SPI(p21, p14, p37)); Serial pc(UART_TX, UART_RX); +#elif (MY_BOARD == MBED_BOARD_EXAMPLE) +cc3000 wifi(p9, p10, p8, SPI(p5, p6, p7)); +Serial pc(USBTX, USBRX); #else #endif
--- a/main.h Wed Oct 16 21:15:29 2013 +0000 +++ b/main.h Thu Nov 07 20:30:27 2013 +0000 @@ -16,9 +16,10 @@ #ifndef MAIN_H #define MAIN_H -#define WIGO 1 -#define WIFI_DIPCORTEX 2 -#define UNDEFINED 3 +#define WIGO 1 +#define WIFI_DIPCORTEX 2 +#define MBED_BOARD_EXAMPLE 3 +#define UNDEFINED 4 #define MY_BOARD WIGO