File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,5 +2,7 @@ examples/autobahn/*
22examples/demo_client/*
33examples/transport/*
44
5+ # comment to build mbed examples (is there a beter way?)
6+ examples/mbed_client/*
57
68
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #include " wic_client.hpp"
2+ #include " EthernetInterface.h"
3+
4+ int main ()
5+ {
6+ static EthernetInterface eth;
7+
8+ eth.connect ();
9+
10+ static WICClient client (eth);
11+
12+ for (;;){
13+
14+ if (client.open (" ws://echo.websocket.org/" )){
15+
16+ while (client.is_open ()){
17+
18+ client.text (" hello world!" );
19+ wait_us (5000 );
20+ }
21+ }
22+ else {
23+
24+ wait_us (10000 );
25+ }
26+ }
27+ }
Original file line number Diff line number Diff line change 1+ MBED WIC Wrapper
2+ ================
3+
Original file line number Diff line number Diff line change 11#include " mbed.h"
2- #include " wic_client.hh "
2+ #include " wic_client.hpp "
33
44#include < assert.h>
55
File renamed without changes.
You can’t perform that action at this time.
0 commit comments