for zabuton

Dependencies:   EthernetInterface HTTPClient SocketIO WebSocketClient mbed-rtos mbed picojson

Files at this revision

API Documentation at this revision

Comitter:
3116redtrain
Date:
Fri Dec 16 08:18:08 2016 +0000
Commit message:
first;

Changed in this revision

CushionNodeConnector.lib Show annotated file Show diff for this revision Revisions of this file
EthernetInterface.lib Show annotated file Show diff for this revision Revisions of this file
HTTPClient.lib Show annotated file Show diff for this revision Revisions of this file
SocketIO.lib Show annotated file Show diff for this revision Revisions of this file
WebSocketClient.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
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
picojson.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 6b7be77233ac CushionNodeConnector.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CushionNodeConnector.lib	Fri Dec 16 08:18:08 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/3116redtrain/code/CushionNodeConnector/#a64827e7b41c
diff -r 000000000000 -r 6b7be77233ac EthernetInterface.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/EthernetInterface.lib	Fri Dec 16 08:18:08 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/EthernetInterface/#183490eb1b4a
diff -r 000000000000 -r 6b7be77233ac HTTPClient.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HTTPClient.lib	Fri Dec 16 08:18:08 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/donatien/code/HTTPClient/#277279a1891e
diff -r 000000000000 -r 6b7be77233ac SocketIO.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SocketIO.lib	Fri Dec 16 08:18:08 2016 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/ansond/code/SocketIO/#8fe60d9ca3bf
diff -r 000000000000 -r 6b7be77233ac WebSocketClient.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/WebSocketClient.lib	Fri Dec 16 08:18:08 2016 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/samux/code/WebSocketClient/#4567996414a5
diff -r 000000000000 -r 6b7be77233ac main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Dec 16 08:18:08 2016 +0000
@@ -0,0 +1,29 @@
+#include "mbed.h"
+#include "CushionNodeConnector.h"
+#include "EthernetInterface.h"
+
+int main() {
+    EthernetInterface eth;
+    eth.init(); //Use DHCP
+    eth.connect();
+    printf("IP Address is %s\n", eth.getIPAddress());
+    
+    CushionNodeConnector cnc;
+    bool ret = cnc.connect();
+    if (!ret)
+        exit(1);
+        
+    char msg[256];
+    while(1) {
+        int res = cnc.mess_send(1, "down");
+        int type=cnc.mess_recv(msg);
+        if (type > 0) {
+            printf("messtype:%d rcv: %s\r\n",type, msg);
+        }
+        if(!cnc.is_connected())
+            break;
+        wait(0.1);       
+    }
+    cnc.close();
+    eth.disconnect();
+}
diff -r 000000000000 -r 6b7be77233ac mbed-rtos.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-rtos.lib	Fri Dec 16 08:18:08 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed-rtos/#58563e6cba1e
diff -r 000000000000 -r 6b7be77233ac mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Dec 16 08:18:08 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/d75b3fe1f5cb
\ No newline at end of file
diff -r 000000000000 -r 6b7be77233ac picojson.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/picojson.lib	Fri Dec 16 08:18:08 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mimil/code/picojson/#2bb500b021e2