I am a newbie , started working on web app to list and control devices in one location.
i could write REST calls for logging and getting location and devices details.
for example below function sends get request for fetching devices for a location:
sendGetRequest(endpoint + “/api/locations/” + locationId + “/devices?” + “access_token=” + token, callback);
How to change status for one device from a web app?