streaming server for AM/FM radio via UDP connection.
Dependencies: mbed EthernetNetIf
Revision 2:3b6816fd4ae6, committed 2012-08-30
- Comitter:
- soramimi
- Date:
- Thu Aug 30 08:35:20 2012 +0000
- Parent:
- 1:3357273c97f8
- Commit message:
Changed in this revision
RadioServer.cpp | 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 |
--- a/RadioServer.cpp Fri Mar 25 15:25:54 2011 +0000 +++ b/RadioServer.cpp Thu Aug 30 08:35:20 2012 +0000 @@ -13,7 +13,7 @@ SPI spi(p5, p6, p7); // mosi, miso, sclk DigitalOut spi_cs(p8); -EthernetNetIf eth(IpAddr(192,168,0,100), //IP Address +EthernetNetIf eth(IpAddr(192,168,0,77), //IP Address IpAddr(255,255,255,0), //Network Mask IpAddr(192,168,0,1), //Gateway IpAddr(192,168,0,1) //DNS @@ -64,7 +64,7 @@ if (len <= 0) { break; } - if (len == 7 && memcmp(buf, "request", len) == 0) { + if (len == 4 && memcmp(buf, "wave", len) == 0) { __disable_irq(); size_t i, n; n = hostlist.size();
--- a/mbed.bld Fri Mar 25 15:25:54 2011 +0000 +++ b/mbed.bld Thu Aug 30 08:35:20 2012 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da +http://mbed.org/users/mbed_official/code/mbed/builds/9114680c05da \ No newline at end of file