![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
v3 Solution
Dependencies: EthernetInterface QEI_hw QEIx4 mbed-rtos mbed realtimeMMLib
MMini.h@0:70c9f7c6844b, 2017-10-02 (annotated)
- Committer:
- GTNicholson
- Date:
- Mon Oct 02 11:19:05 2017 +0000
- Revision:
- 0:70c9f7c6844b
Initial Publish Version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GTNicholson | 0:70c9f7c6844b | 1 | #include <string> |
GTNicholson | 0:70c9f7c6844b | 2 | using namespace std; |
GTNicholson | 0:70c9f7c6844b | 3 | |
GTNicholson | 0:70c9f7c6844b | 4 | struct iniSensor |
GTNicholson | 0:70c9f7c6844b | 5 | { |
GTNicholson | 0:70c9f7c6844b | 6 | char ID[32]; |
GTNicholson | 0:70c9f7c6844b | 7 | char SensorType[32]; |
GTNicholson | 0:70c9f7c6844b | 8 | char Enabled[32]; |
GTNicholson | 0:70c9f7c6844b | 9 | char SampleTime[32]; |
GTNicholson | 0:70c9f7c6844b | 10 | char DataSampleQty[32]; |
GTNicholson | 0:70c9f7c6844b | 11 | char Pins[32]; |
GTNicholson | 0:70c9f7c6844b | 12 | char SensorOptions[32]; |
GTNicholson | 0:70c9f7c6844b | 13 | |
GTNicholson | 0:70c9f7c6844b | 14 | }; |
GTNicholson | 0:70c9f7c6844b | 15 | |
GTNicholson | 0:70c9f7c6844b | 16 | struct iniServer { |
GTNicholson | 0:70c9f7c6844b | 17 | char IPAddress[32]; |
GTNicholson | 0:70c9f7c6844b | 18 | char Port[32]; |
GTNicholson | 0:70c9f7c6844b | 19 | }; |
GTNicholson | 0:70c9f7c6844b | 20 | |
GTNicholson | 0:70c9f7c6844b | 21 | struct iniStation |
GTNicholson | 0:70c9f7c6844b | 22 | { |
GTNicholson | 0:70c9f7c6844b | 23 | char ID[32]; |
GTNicholson | 0:70c9f7c6844b | 24 | char Name[32]; |
GTNicholson | 0:70c9f7c6844b | 25 | char ComsType[32]; |
GTNicholson | 0:70c9f7c6844b | 26 | char IPAddress[32]; |
GTNicholson | 0:70c9f7c6844b | 27 | char NetworkMask[32]; |
GTNicholson | 0:70c9f7c6844b | 28 | char DefaultGateway[32]; |
GTNicholson | 0:70c9f7c6844b | 29 | char DataSendTime[32]; |
GTNicholson | 0:70c9f7c6844b | 30 | }; |
GTNicholson | 0:70c9f7c6844b | 31 | |
GTNicholson | 0:70c9f7c6844b | 32 | class iniFile |
GTNicholson | 0:70c9f7c6844b | 33 | { |
GTNicholson | 0:70c9f7c6844b | 34 | public: |
GTNicholson | 0:70c9f7c6844b | 35 | iniFile(); |
GTNicholson | 0:70c9f7c6844b | 36 | |
GTNicholson | 0:70c9f7c6844b | 37 | iniStation Station; |
GTNicholson | 0:70c9f7c6844b | 38 | |
GTNicholson | 0:70c9f7c6844b | 39 | iniServer Server; |
GTNicholson | 0:70c9f7c6844b | 40 | |
GTNicholson | 0:70c9f7c6844b | 41 | iniSensor Sensor1; |
GTNicholson | 0:70c9f7c6844b | 42 | iniSensor Sensor2; |
GTNicholson | 0:70c9f7c6844b | 43 | iniSensor Sensor3; |
GTNicholson | 0:70c9f7c6844b | 44 | iniSensor Sensor4; |
GTNicholson | 0:70c9f7c6844b | 45 | iniSensor Sensor5; |
GTNicholson | 0:70c9f7c6844b | 46 | iniSensor Sensor6; |
GTNicholson | 0:70c9f7c6844b | 47 | iniSensor Sensor7; |
GTNicholson | 0:70c9f7c6844b | 48 | iniSensor Sensor8; |
GTNicholson | 0:70c9f7c6844b | 49 | iniSensor Sensor9; |
GTNicholson | 0:70c9f7c6844b | 50 | iniSensor Sensor10; |
GTNicholson | 0:70c9f7c6844b | 51 | |
GTNicholson | 0:70c9f7c6844b | 52 | }; |
GTNicholson | 0:70c9f7c6844b | 53 | |
GTNicholson | 0:70c9f7c6844b | 54 |