From 308bd4cbb665d7c3adda40c36e6f88543f69a95d Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Sun, 1 Sep 2019 23:16:11 +0200 Subject: [PATCH] =?UTF-8?q?Mettre=20=C3=A0=20jour=20'README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 422e98c..28880c5 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,17 @@ Here is a list of the available api calls for the board : * Description : Get the module's system information (free memory, heap frag etc...) * Response format : JSON * OK : { "status" : "ok", "CPU freq" : "XX", "free RAM" : "XXXXX", "heap frag" : "X", "max block" : "XXXXX", "nb views" : "X" } +* /sab/power/info + * HTTP request method : GET + * Description : Get the module's power information + * Response format : JSON + * OK : { "status" : "ok", "power type" : "USB", "level" : "0", "unit" : "%" } +* /sab/io/get/level +* /sab/io/get/level?P0&P2&PX... + * HTTP request method : GET + * Description : Get the module's I/O logic levels, it is possible to check the level of specific pins + * Response format : JSON + * OK : { "status" : "ok", "P0" : "1", "P1" : "1", "P2" : "0", "P3" : "1", "P4" : "1", "P5" : "1", "P6" : "1", "P7" : "1" } ### Things to do :