From f11acd806555ee28898a5f9c9777815b59d6c4f7 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 12 Aug 2021 15:59:41 -0400 Subject: motan: Add support for dumping and analyzing adxl345 data Signed-off-by: Kevin O'Connor --- docs/API_Server.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'docs/API_Server.md') diff --git a/docs/API_Server.md b/docs/API_Server.md index 77470137..562ad57e 100644 --- a/docs/API_Server.md +++ b/docs/API_Server.md @@ -321,6 +321,26 @@ and might later produce asynchronous messages such as: The "header" field in the initial query response is used to describe the fields found in later "data" responses. +### adxl345/dump_adxl345 + +This endpoint is used to subscribe to ADXL345 accelerometer data. +Obtaining these low-level motion updates may be useful for diagnostic +and debugging purposes. Using this endpoint may increase Klipper's +system load. + +A request may look like: +`{"id": 123, "method":"adxl345/dump_adxl345", +"params": {"sensor": "adxl345", "response_template": {}}}` +and might return: +`{"id": 123,"result":{"header":["time","x_acceleration","y_acceleration", +"z_acceleration"]}}` +and might later produce asynchronous messages such as: +`{"params":{"overflows":0,"data":[[3292.432935,-535.44309,-1529.8374,9561.4], +[3292.433256,-382.45935,-1606.32927,9561.48375]]}}` + +The "header" field in the initial query response is used to describe +the fields found in later "data" responses. + ### pause_resume/cancel This endpoint is similar to running the "PRINT_CANCEL" G-Code command. -- cgit v1.2.3-70-g09d2