![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
v3 Solution
Dependencies: EthernetInterface QEI_hw QEIx4 mbed-rtos mbed realtimeMMLib
Diff: MMini.h
- Revision:
- 0:70c9f7c6844b
diff -r 000000000000 -r 70c9f7c6844b MMini.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MMini.h Mon Oct 02 11:19:05 2017 +0000 @@ -0,0 +1,54 @@ +#include <string> +using namespace std; + +struct iniSensor +{ + char ID[32]; + char SensorType[32]; + char Enabled[32]; + char SampleTime[32]; + char DataSampleQty[32]; + char Pins[32]; + char SensorOptions[32]; + +}; + +struct iniServer { + char IPAddress[32]; + char Port[32]; +}; + +struct iniStation +{ + char ID[32]; + char Name[32]; + char ComsType[32]; + char IPAddress[32]; + char NetworkMask[32]; + char DefaultGateway[32]; + char DataSendTime[32]; +}; + +class iniFile +{ +public: + iniFile(); + + iniStation Station; + + iniServer Server; + + iniSensor Sensor1; + iniSensor Sensor2; + iniSensor Sensor3; + iniSensor Sensor4; + iniSensor Sensor5; + iniSensor Sensor6; + iniSensor Sensor7; + iniSensor Sensor8; + iniSensor Sensor9; + iniSensor Sensor10; + +}; + +