public class ArduinoServiceImpl extends Object implements ArduinoService
Constructor and Description |
---|
ArduinoServiceImpl() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
downloadSketch(String deviceName)
download device agent
|
javax.ws.rs.core.Response |
getArduinoTemperatureStats(String deviceId,
long from,
long to)
Retrieve Sensor data for the device type
|
javax.ws.rs.core.Response |
readControls(String deviceId) |
javax.ws.rs.core.Response |
switchBulb(String deviceId,
String state) |
public javax.ws.rs.core.Response switchBulb(String deviceId, String state)
switchBulb
in interface ArduinoService
public javax.ws.rs.core.Response readControls(String deviceId)
readControls
in interface ArduinoService
public javax.ws.rs.core.Response getArduinoTemperatureStats(String deviceId, long from, long to)
ArduinoService
getArduinoTemperatureStats
in interface ArduinoService
public javax.ws.rs.core.Response downloadSketch(String deviceName)
ArduinoService
downloadSketch
in interface ArduinoService
Copyright © 2017 WSO2. All rights reserved.