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: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_mqtt_endpoint_nxp
Diff: MBEDEndpoint.cpp
- Revision:
- 46:32a7545dde45
- Parent:
- 44:2740794b059a
- Child:
- 47:b775f5453b5d
--- a/MBEDEndpoint.cpp Tue Jul 01 20:59:35 2014 +0000 +++ b/MBEDEndpoint.cpp Tue Jul 01 21:26:40 2014 +0000 @@ -119,14 +119,19 @@ void MBEDEndpoint::initGWAddress() { memset(this->m_gw_address,0,PREFERENCE_VALUE_LEN+1); strcpy(this->m_gw_address,GW_IPADDRESS); - if (this->m_preferences != NULL) + if (this->m_preferences != NULL) { this->m_preferences->getPreference("gw_address",this->m_gw_address,PREFERENCE_VALUE_LEN,GW_IPADDRESS); - this->logger()->log("GW IP: %s",this->m_gw_address); + this->m_preferences->getPreference("gw_port",this->m_gw_port,PREFERENCE_VALUE_LEN,GW_PORT); + this->logger()->log("GW: %s:%s",this->m_gw_address,this->m_gw_port); + } } // get our GW address char *MBEDEndpoint::getGWAddress() { return this->m_gw_address; } + // get our GW Port + char *MBEDEndpoint::getGWPort() { return this->m_gw_port; } + // get our LCD status char *MBEDEndpoint::getLCDStatus() { memset(this->m_lcd_status,0,TEMP_BUFFER_LEN+1);