public class VirtualFireAlarmServiceImpl extends Object implements VirtualFireAlarmService
SCOPE
Constructor and Description |
---|
VirtualFireAlarmServiceImpl() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
downloadSketch(String deviceName,
String sketchType) |
javax.ws.rs.core.Response |
getVirtualFirealarmStats(String deviceId,
long from,
long to)
Retrieve Sensor data for the device type
|
javax.ws.rs.core.Response |
switchBuzzer(String deviceId,
String state)
This is an API called/used from within the Server(Front-End) or by a device Owner.
|
javax.ws.rs.core.Response |
updatePolicy(String deviceId,
String protocol,
String policy) |
public javax.ws.rs.core.Response switchBuzzer(String deviceId, String state)
VirtualFireAlarmService
switchBuzzer
in interface VirtualFireAlarmService
deviceId
- the ID of the VirtualFirealarm device on which the buzzer needs to switched `ON` or `OFF`.state
- the state to which the buzzer on the device needs to be changed. Either "ON" or "OFF".
(Case-Insensitive String)public javax.ws.rs.core.Response updatePolicy(String deviceId, String protocol, String policy)
public javax.ws.rs.core.Response getVirtualFirealarmStats(String deviceId, long from, long to)
VirtualFireAlarmService
getVirtualFirealarmStats
in interface VirtualFireAlarmService
public javax.ws.rs.core.Response downloadSketch(String deviceName, String sketchType)
downloadSketch
in interface VirtualFireAlarmService
Copyright © 2017 WSO2. All rights reserved.