diff --git a/README.md b/README.md index 79c1e28..422e98c 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,12 @@ Here is a list of the available api calls for the board : * Response format : JSON * OK : { "status" : "ok", "date" : "xx/xx/xxxx", "time" "xx:xx:xx" } * FAIL : { "status" : "failed", "message" : "REASON" } +* /sab/sdcard/size + * HTTP request method : GET + * Description : Show SD Card size in GByte + * Response format : JSON + * OK : { "status" : "ok", "card" : "present", "size" : "xx.xx", "unit" : "GByte" } + * OK : { "status" : "ok", "card" : "not present", "size" : "0" } * /sab/sdcard/unmount * HTTP request method : GET * Description : Unmount the SD Card in order to remove it @@ -161,11 +167,23 @@ Here is a list of the available api calls for the board : * /esp/restart * HTTP request method : GET * Description : Restart the UC, this one is recommended compared to the reset call - * Response format : NOTHING + * Response format : JSON + * OK : { "status" : "ok", "message" : "module restarting in 10 seconds" } * /esp/reset * HTTP request method : GET * Description : Reset the UC - * Response format : NOTHING + * Response format : JSON + * OK : { "status" : "ok", "message" : "module resetting in 10 seconds" } +* /sab/wifi/stainfo + * HTTP request method : GET + * Description : Get the module's station information + * Response format : JSON + * OK : { "status" : "ok", "RSSI" : "-XX", "RSSI2" : "X", "local IP" : "XXX.XXX.X.XX", "mac" : "XX:XX:XX:XX:XX:XX" } +* /sab/systeminfo + * HTTP request method : GET + * 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" } ### Things to do :