mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-12 14:37:06 +03:00
Merge pull request #1158 from Turbo87/pre-json
FlowPostProcessing::GetJSON: Add `pre` field to the `/json` response
This commit is contained in:
@@ -35,6 +35,7 @@ std::string ClassFlowPostProcessing::GetJSON(std::string _id, std::string _mac,
|
|||||||
else
|
else
|
||||||
json += " \"value\": \"\"," + _lineend;
|
json += " \"value\": \"\"," + _lineend;
|
||||||
json += " \"raw\": \"" + NUMBERS[i]->ReturnRawValue + "\"," + _lineend;
|
json += " \"raw\": \"" + NUMBERS[i]->ReturnRawValue + "\"," + _lineend;
|
||||||
|
json += " \"pre\": \"" + NUMBERS[i]->ReturnPreValue + "\"," + _lineend;
|
||||||
json += " \"error\": \"" + NUMBERS[i]->ErrorMessageText + "\"," + _lineend;
|
json += " \"error\": \"" + NUMBERS[i]->ErrorMessageText + "\"," + _lineend;
|
||||||
if (NUMBERS[i]->ReturnRateValue.length() > 0)
|
if (NUMBERS[i]->ReturnRateValue.length() > 0)
|
||||||
json += " \"rate\": " + NUMBERS[i]->ReturnRateValue + "," + _lineend;
|
json += " \"rate\": " + NUMBERS[i]->ReturnRateValue + "," + _lineend;
|
||||||
|
|||||||
Reference in New Issue
Block a user