Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As the program contains a lot of settings (10+) the need for a function block that collectively parses all parameters and provides the output settings.


The Program Code

The JSON string is updated before all the values are 

Image AddedIF xTrig THEN
    SettingsParser.jsonString := jsonString;
    PHSettings := THIS^.GetSettings('PH');
    ECSettings := THIS^.GetSettings('EC');
    WaterTempSettings := THIS^.GetSettings('WaterTemp');
    CO2Settings := THIS^.GetSettings('CO2');
    AirTempSettings := THIS^.GetSettings('AirTemp');
    HumiditySettings := THIS^.GetSettings('Humidity');
    xTrig := FALSE;
END_IF