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.h
- Revision:
- 3:7177e463ac52
- Parent:
- 2:5af11ca8e085
- Child:
- 4:c8f6d3677937
--- a/ConfigurationFile.h Wed Apr 06 15:46:53 2016 +0000 +++ b/ConfigurationFile.h Wed Apr 06 20:20:25 2016 +0000 @@ -8,19 +8,16 @@ class ConfigurationFile{ public: - ConfigurationFile(); + ConfigurationFile(char *pathName); ~ConfigurationFile(); - void readServerEthernetConfiguration(); - void readNodeEthernetConfiguration(); - void readConfigurationFile(char *pathName); - void getServerConfiguration(); - void getNodeConfiguration(); string getIP(); string getMask(); string getGateway(); string getURL(); - string getBroadcastAddress(); + int getBroadcastPort(); + + void getUnitConfiguration(); private: ConfigFile cfg; @@ -28,14 +25,17 @@ string ip; string mask; string gateway; - string broadcastAddress; + string broadcastPort; string url; void setIP(); void setMask(); void setGateway(); void setURL(); - void setBroadcastAddress(); + void setBroadcastPort(); + + void readUnitConfiguration(); + void readConfigurationFile(char *pathName); }; #endif \ No newline at end of file