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.
Dependents: MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more
Revision 99:875f75e7e63e, committed 2014-10-26
- 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.
*/
MiMic Webservice library