Port to C027 (using AppShield and Cellular)
Dependencies: C027_Support C12832 LM75B MMA7660 MQTT mbed-rtos mbed
Dependents: TCU-POC_BACK_WORKING
Fork of IBMIoTClientEthernetExample by
Revision 14:6f36d75b3917, committed 2015-03-13
- Comitter:
- mazgch
- Date:
- Fri Mar 13 07:11:56 2015 +0000
- Parent:
- 13:6a0af5deb2db
- Child:
- 15:7c3279ac3c52
- Commit message:
- moved config
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Mar 13 06:23:30 2015 +0000 +++ b/main.cpp Fri Mar 13 07:11:56 2015 +0000 @@ -45,22 +45,7 @@ #define MQTT_MAX_PACKET_SIZE 250 -C12832 lcd(D11, D13, D12, D7, D10); -PwmOut r(D5); -PwmOut g(D9); -PwmOut b(D8); -DigitalOut led1(LED1); DigitalOut led2(LED2); DigitalOut led3(LED3); -MMA7660 MMA(D14, D15); -LM75B sensor(D14,D15); -DigitalIn Up(A2); DigitalIn Down(A3); DigitalIn Left(A4); DigitalIn Right(A5); DigitalIn Click(D4); -AnalogIn ain1 (A0); AnalogIn ain2 (A1); - -#define LED2_OFF 0 -#define LED2_ON 1 - -#define DEFAULT_TYPE_NAME "iotsample-mbed-c027" - - //------------------------------------------------------------------------------------ +//------------------------------------------------------------------------------------ // You need to configure these cellular modem / SIM parameters. // These parameters are ignored for LISA-C200 variants and can be left NULL. //------------------------------------------------------------------------------------ @@ -77,10 +62,25 @@ # define PASSWORD NULL //------------------------------------------------------------------------------------ +C12832 lcd(D11, D13, D12, D7, D10); +PwmOut r(D5); +PwmOut g(D9); +PwmOut b(D8); +DigitalOut led1(LED1); DigitalOut led2(LED2); DigitalOut led3(LED3); +MMA7660 MMA(D14, D15); +LM75B sensor(D14,D15); +DigitalIn Up(A2); DigitalIn Down(A3); DigitalIn Left(A4); DigitalIn Right(A5); DigitalIn Click(D4); +AnalogIn ain1 (A0); AnalogIn ain2 (A1); + +#define LED2_OFF 0 +#define LED2_ON 1 + +static uint32_t linkStatus(void) { return true; } + +#define DEFAULT_TYPE_NAME "iotsample-mbed-c027" + #define MQTT_CLIENT_TYPE MQTTSocket #include "MQTTSocket.h" -// need a wrapper since K64F and LPC1768 wont have the same name for mii read methods -static uint32_t linkStatus(void) { return true; } bool quickstartMode = true; char org[11] = ORG;