Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DebugLib EthernetInterface cantcoap mbed-rtos
Fork of yeswecancoap by
Revision 29:62113a57353b, committed 2015-11-17
- Comitter:
- sillevl
- Date:
- Tue Nov 17 16:44:39 2015 +0000
- Parent:
- 28:4f71d9d10011
- Commit message:
- added method to get the ip address
Changed in this revision
| server.cpp | Show annotated file Show diff for this revision Revisions of this file |
| server.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/server.cpp Fri Oct 23 11:29:59 2015 +0000
+++ b/server.cpp Tue Nov 17 16:44:39 2015 +0000
@@ -14,6 +14,10 @@
server.set_blocking(false, 100);
}
+char* Server::getIpAddress(){
+ return eth.getIPAddress();
+}
+
void Server::enableBroadcast(int broadcast)
{
server.set_broadcasting(broadcast);
--- a/server.h Fri Oct 23 11:29:59 2015 +0000
+++ b/server.h Tue Nov 17 16:44:39 2015 +0000
@@ -59,6 +59,8 @@
*/
void enableBroadcast(int broadcast = true);
+ char* getIpAddress();
+
private:
EthernetInterface eth;
