Ryo Iizuka / libMiMic

Dependents:   MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more

Files at this revision

API Documentation at this revision

Comitter:
nyatla
Date:
Sun Oct 26 10:19:05 2014 +0000
Parent:
98:6284ce9a0476
Child:
100:8d45dab6dcf6
Commit message:
NetConfig?API??

Changed in this revision

mbed/NetConfig.cpp Show annotated file Show diff for this revision Revisions of this file
mbed/NetConfig.h Show annotated file Show diff for this revision Revisions of this file
--- a/mbed/NetConfig.cpp	Sat Oct 25 14:35:24 2014 +0000
+++ b/mbed/NetConfig.cpp	Sun Oct 26 10:19:05 2014 +0000
@@ -233,6 +233,11 @@
     memcpy(this->_inst.hostname,i_hostname,l);
     *(this->_inst.hostname+l)='\0';
 }
+const char* NetConfig::getHostName()
+{
+    return this->_inst.hostname;
+}
+
 void NetConfig::setFriendlyName(const char* i_name)
 {
     this->_dns_record.name=this->_upnp_desc.frendly_name=(i_name==NULL?STR_EMPTY:i_name);
--- a/mbed/NetConfig.h	Sat Oct 25 14:35:24 2014 +0000
+++ b/mbed/NetConfig.h	Sun Oct 26 10:19:05 2014 +0000
@@ -104,6 +104,7 @@
          * maximum length is NyLPC_TcNetConfig_HOSTNAME_LEN-1
          */
         void setHostName(const char* i_hostname,int len);
+        const char* getHostName();
         /**
          * Set ethernet mac address to instance.
          */