MiMicSDK Websocket module sample program.

Dependencies:   NyFileSystems libMiMic mbed-rtos mbed

Fork of UPnPBasicDevice by Ryo Iizuka

This is Websocket server.

WebSocketのサンプルです。 MiMicSDKのWebsocketはhttpdの1モジュールとして動作するので、ファイルサーバ等と一緒に動かすことが出来ます。

ファームウェアを書き込んだ後にブラウザから "http://192.168.128.39/" にアクセスすると、AIN1のデータをリアルタイムに表示するページが開きます。

Files at this revision

API Documentation at this revision

Comitter:
nyatla
Date:
Tue Sep 15 12:30:20 2015 +0000
Parent:
28:2b09542a6a5b
Commit message:
update libraries.

Changed in this revision

NyFileSystems.lib Show annotated file Show diff for this revision Revisions of this file
NySDFileSystem.lib Show diff for this revision Revisions of this file
libMiMic.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/NyFileSystems.lib	Tue Sep 15 12:30:20 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/nyatla/code/NyFileSystems/#509d2ac0ba4f
--- a/NySDFileSystem.lib	Sat Jun 14 02:30:05 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/nyatla/code/NySDFileSystem/#22ce3449b224
--- a/libMiMic.lib	Sat Jun 14 02:30:05 2014 +0000
+++ b/libMiMic.lib	Tue Sep 15 12:30:20 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/nyatla/code/libMiMic/#fc7f46e67229
+http://mbed.org/users/nyatla/code/libMiMic/#e40058804062
--- a/main.cpp	Sat Jun 14 02:30:05 2014 +0000
+++ b/main.cpp	Tue Sep 15 12:30:20 2015 +0000
@@ -67,7 +67,8 @@
 
 int main()
 {
-    net=new Net();//Net constructor must be created after started RTOS
+    MiMicNetIf netif;
+    net=new Net(netif);//Net constructor must be created after started RTOS
     // manual setting
     cfg.setIpAddr(192,168,128,39);
     cfg.setNetMask(255,255,255,0);
--- a/mbed-rtos.lib	Sat Jun 14 02:30:05 2014 +0000
+++ b/mbed-rtos.lib	Tue Sep 15 12:30:20 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#e98f5e27f346
+http://mbed.org/users/mbed_official/code/mbed-rtos/#21b438192b0f
--- a/mbed.bld	Sat Jun 14 02:30:05 2014 +0000
+++ b/mbed.bld	Tue Sep 15 12:30:20 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/024bf7f99721
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/ba1f97679dad
\ No newline at end of file