Hello, I'm a beginner with Dashboard, and have a question on HTTP GET queries.
I can successfully receive a response from a device when I use Postman, but don't seem to receive the data in Dashboard. Or I'm thinking I maybe need to create an object from the response before I can work with it?
Here's a screen shot from Postman.
In dashboard I've created a button and assigned a task to it, with the ogScript...
ogscript.asyncHTTP("http://192.168.1.120:8060/query/device-info", "GET", "text/plain", "", rokuCallback);
and then created a rokuCallback api...
function rokuCallback(resultData)
{
if (resultData == null){
ogscript.debug('No data');
}else{
ogscript.debug('Result is: ' + resultData);
}
}
and I get 'No Data' in debug. Any advice would be appreciated!