Hi,
I'm developing a windows service that controls/monitors the above mentioned mining applications by their API. Currently I facing the problem that I have to map the information that I receive from "dev" command to the information I received from "devdetails". As reponse of "devdetails" I get an unique ID, but how I can identify which device is the related in the "dev" response? I could imagine it would be possible to bypass the problem by first receiving all devices from the "devdetails" command, and then to request the information explicit by "gpu"/"cpu"/"pga" and the ID I received from "devdetails" command. Unfortunately I have no possibilities for testing it as I don't have multiple mining devices. Some advice would be highly appreciated.
Thank you very much in advance!
I use
sprintf_s(command, sizeof(command), "{ \"command\" : \"pga\" , \"parameter\" : \"%d\" }", pga);
sprintf_s(command, sizeof(command), "{ \"command\" : \"gpu\" , \"parameter\" : \"%d\" }", gpu);
to get device stats
and to get number of devices:
strcpy_s(command, sizeof(command), "{ \"command\" : \"config\" }");
Not sure if that is what you want. Take a look at my akbash code if you like.