This is example for using IBM IoT Client on W5500(Hardware Stack)

Dependencies:   MQTT W5500Interface mbed

Files at this revision

API Documentation at this revision

Comitter:
kaizen
Date:
Mon Sep 29 05:06:13 2014 +0000
Parent:
1:532d83b9f910
Commit message:
This is example for using IBM Iot Client

Changed in this revision

MQTT.lib Show annotated file Show diff for this revision Revisions of this file
W5500Interface.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/MQTT.lib	Mon Sep 29 04:57:17 2014 +0000
+++ b/MQTT.lib	Mon Sep 29 05:06:13 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/mqtt/code/MQTT/#f53a95f9c1d8
+http://mbed.org/teams/EthernetInterfaceW5500-makers/code/MQTT/#f53a95f9c1d8
--- a/W5500Interface.lib	Mon Sep 29 04:57:17 2014 +0000
+++ b/W5500Interface.lib	Mon Sep 29 05:06:13 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/teams/EthernetInterfaceW5500-makers/code/W5500Interface/#677dfa3984d1
+http://mbed.org/teams/EthernetInterfaceW5500-makers/code/W5500Interface/#da52bf0e0e5d
--- a/main.cpp	Mon Sep 29 04:57:17 2014 +0000
+++ b/main.cpp	Mon Sep 29 05:06:13 2014 +0000
@@ -162,11 +162,14 @@
 int main()
 {    
 #if defined(TARGET_KL25Z)
-        SPI spi(D11, D12, D13); // mosi, miso, sclk
-        wait(1);
+    Serial pc(USBTX, USBRX);
+    pc.baud(115200);
+
+    SPI spi(D11, D12, D13); // mosi, miso, sclk
+    wait(1);
     
-        MQTTEthernet ipstack(&spi, D10, D9); //scs(D10), nRESET(PTA20)
-        MQTT::Client<MQTTEthernet, Countdown, MQTT_MAX_PACKET_SIZE> client(ipstack);
+    MQTTEthernet ipstack(&spi, D10, D9); //scs(D10), nRESET(PTA20)
+    MQTT::Client<MQTTEthernet, Countdown, MQTT_MAX_PACKET_SIZE> client(ipstack);
 #endif    
 
     getMac(ipstack.getEth(), id, sizeof(id));