From acb8c0be017be3bc45c31805d1ec3af324dbccec Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Sat, 6 Apr 2019 14:37:53 +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 | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 758a51e..db0aa79 100644 --- a/README.md +++ b/README.md @@ -130,11 +130,36 @@ Here is a list of the available api calls for the board : * Response format : JSON * OK : { "status" : "ok", "ViewUID" : "UID" } * FAIL : { "status" : "failed", "message" : "REASON" } -/sab/rtc/get/datetime -/sab/sdcard/eject -/sab/sdcard/insert -/esp/restart -/esp/reset +* /sab/rtc/get/datetime + * HTTP request method : GET + * Description : Get RTC's time + * Response format : JSON + * OK : { "status" : "ok", "date" : "xx/xx/xxxx", "time" "xx:xx:xx" } +* /sab/rtc/set/datetime?datetime=day_month_year_hours_minutes_seconds + * HTTP request method : GET + * Description : Set RTC's clock + * Response format : JSON + * OK : { "status" : "ok", "date" : "xx/xx/xxxx", "time" "xx:xx:xx" } + * FAIL : { "status" : "failed", "message" : "REASON" } +* /sab/sdcard/unmount + * HTTP request method : GET + * Description : Unmount the SD Card in order to remove it + * Response format : JSON + * OK : { "status" : "ok", "card" : "unmounted" } +* /sab/sdcard/mount + * HTTP request method : GET + * Description : Mount the SD Card + * Response format : JSON + * OK : { "status" : "ok", "card" : "mounted" } + * FAIL : { "status" : "failed", "message" : "REASON" } +* /esp/restart + * HTTP request method : GET + * Description : Restart the UC, this one is recommended compared to the reset call + * Response format : NOTHING +* /esp/reset + * HTTP request method : GET + * Description : Reset the UC + * Response format : NOTHING ### Things to do :