1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Add more explanation of JSON format and the 'save' command

This commit is contained in:
Kano 2012-01-23 15:32:48 +11:00
parent a1cd9defba
commit 2e16d5e543

7
README
View File

@ -543,6 +543,10 @@ The JSON request format required is '{"command":"CMD","parameter":"PARAM"}'
where "CMD" is from the "Request" column below and "PARAM" would be e.g. where "CMD" is from the "Request" column below and "PARAM" would be e.g.
the CPU/GPU number if required. the CPU/GPU number if required.
An example request in both formats:
gpufan|0,80
{"command":"gpufan","parameter":"0,80"}
The format of each reply (unless stated otherwise) is a STATUS section The format of each reply (unless stated otherwise) is a STATUS section
followed by an optional detail section followed by an optional detail section
@ -635,7 +639,8 @@ The list of requests and replies are:
stating the results of setting GPU N vddc to V stating the results of setting GPU N vddc to V
save|filename none There is no reply section just the STATUS section save|filename none There is no reply section just the STATUS section
stating success or failure stating success or failure saving the cgminer config
to filename
quit none There is no status section but just a single "BYE|" quit none There is no status section but just a single "BYE|"
reply before cgminer quits reply before cgminer quits