From d5e5a6da2defb357ac986fb2a79003a8e1dd738d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 2 Aug 2024 13:44:26 -0400 Subject: hx71x: Update api header and docs to correctly note "value" field Update both hx71x and ads1220 to reflect that there is a third "value" field in the reported data. Signed-off-by: Kevin O'Connor --- docs/API_Server.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'docs/API_Server.md') diff --git a/docs/API_Server.md b/docs/API_Server.md index f29bbeba..3837f737 100644 --- a/docs/API_Server.md +++ b/docs/API_Server.md @@ -375,9 +375,10 @@ A request may look like: `{"id": 123, "method":"hx71x/dump_hx71x", "params": {"sensor": "load_cell", "response_template": {}}}` and might return: -`{"id": 123,"result":{"header":["time","counts"]}}` +`{"id": 123,"result":{"header":["time","counts","value"]}}` and might later produce asynchronous messages such as: -`{"params":{"data":[[3292.432935, 562534], [3292.4394937, 5625322]]}}` +`{"params":{"data":[[3292.432935, 562534, 0.067059278], +[3292.4394937, 5625322, 0.670590639]]}}` ### ads1220/dump_ads1220 @@ -390,9 +391,10 @@ A request may look like: `{"id": 123, "method":"ads1220/dump_ads1220", "params": {"sensor": "load_cell", "response_template": {}}}` and might return: -`{"id": 123,"result":{"header":["time","counts"]}}` +`{"id": 123,"result":{"header":["time","counts","value"]}}` and might later produce asynchronous messages such as: -`{"params":{"data":[[3292.432935, 562534], [3292.4394937, 5625322]]}}` +`{"params":{"data":[[3292.432935, 562534, 0.067059278], +[3292.4394937, 5625322, 0.670590639]]}}` ### pause_resume/cancel -- cgit v1.2.3-70-g09d2