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: ConfigFile
Diff: ConfigurationFile.cpp
- Revision:
- 6:d5c26e813715
- Parent:
- 4:c8f6d3677937
--- a/ConfigurationFile.cpp Wed Apr 06 20:55:08 2016 +0000
+++ b/ConfigurationFile.cpp Fri Apr 08 14:24:53 2016 +0000
@@ -65,7 +65,7 @@
char value[BUFSIZ];
if (cfg.getValue( "GATEWAY", &value[0], sizeof(value)))
{
- printf("'%s'='%s'\n", "GATEWAY", value);
+ printf("'%s'='%s'\r\n", "GATEWAY", value);
string s = value;
gateway = s;
}
@@ -85,7 +85,7 @@
char value[BUFSIZ];
if (cfg.getValue( "URL", &value[0], sizeof(value)))
{
- printf("'%s'='%s'\n", "URL", value);
+ printf("'%s'='%s'\r\n", "URL", value);
string s = value;
url = s;
}
@@ -105,7 +105,7 @@
char value[BUFSIZ];
if (cfg.getValue( "BROADCAST", &value[0], sizeof(value)))
{
- printf("'%s'='%s'\n", "Broadcast Address", value);
+ printf("'%s'='%s'\r\n", "Broadcast Address", value);
string s = value;
broadcastPort = s;
}
@@ -132,9 +132,9 @@
void ConfigurationFile::getUnitConfiguration()
{
- printf("IP : %s\n",getIP());
- printf("Mask : %s\n",getMask());
- printf("Gateway : %s\n",getGateway());
- printf("URL : %s\n",getURL());
- printf("BroadcastPort : %i,\n",getBroadcastPort());
+ printf("IP : %s\r\n",getIP());
+ printf("Mask : %s\r\n",getMask());
+ printf("Gateway : %s\r\n",getGateway());
+ printf("URL : %s\r\n",getURL());
+ printf("BroadcastPort : %i,\r\n",getBroadcastPort());
}
\ No newline at end of file