Avatar

DiagnosticDevicePowerChange

0

What typeName is the diagnostic "DiagnosticDevicePowerChange" under? And what is required for the search parameters?

The object I'm sending is below and I'm getting a postgres error. Any help would be greatly appreciated.

var apiMethod = {
"method" : "Get",
"params" : {
"typeName" : "StatusData",
"credentials" : (authObj.result.credentials),
"search": {
"diagnosticSearch": {
"id": "DiagnosticDevicePowerChange"
},
"deviceSearch": {
"id": listOfIds[i]
},
"fromDate": beginningOfDay,
"toDate": endOfDay
}
}
};

jmb_engineer

Please sign in to leave a comment.

2 comments

0
Avatar

In the above code I'm sending this object for each unique device id in the list "listOfIds"

jmb_engineer 0 votes
0
Avatar

Hello,

The diagnostic id you are using should be written to as: DiagnosticDevicePowerChangeId. Running your snippet with that change made it work for me. In this case the posters error was returned because the id you used was not recognized as it was missing the last two characters as I've shown above.

Wajih Qazi 0 votes