Hi,
I'm trying to write data on one device through the http api but seems that the payload data parameter is missing and the subsequent Write does nothing.
@POST
@Path("/{sensorName}")
public void Write(@PathParam("id") String id, @PathParam("sensorName") String sensorName) throws DBusException {
try {
getDevice(id).Write();
} catch (UnknownObject ex) {
throw new AgileDeviceNotFoundException("Device not found");
} catch (Exception ex) {
throw new WebApplicationException("Error on writing data", ex);
}
}
TiSensorTag allows to enable/disable notifications. With this write functionality in TiSensorTag, you can turn on/off notification by passing 1/0 respectively.
Hi, I'm trying to write data on one device through the http api but seems that the payload data parameter is missing and the subsequent Write does nothing.
Regards