Closed brcolow closed 10 years ago
Note: version
has the same.
Thoughts on luke-jr/bfgminer#438 as a solution? (Note I did not see any problem with version...)
My bad, version
is fine (used api-example.c
which doesn't format parse the output as JSON; api-example.py
does, and fails on restart
/quit
).
https://github.com/luke-jr/bfgminer/pull/438 works fine. EDIT: will merge soon.
Hello,
I noticed that when working with the JSON-RPC API provided by SGMiner that when issuing the "quit" command, SGMiner responds via with the following JSON:
{ "BYE", "id":1 }
When I went to parse this string as JSON (as I do with all the API command replies), my JSON library threw up. Looking into this a bit more, this is invalid JSON (try putting the above string into http://jsonformatter.curiousconcept.com/ for example). We can easily fix this by changing the response to:
{ "Msg":"BYE", "id":1 }
or something similar.
Thanks, Michael Ennen