mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
removed method and type from feature
This commit is contained in:
parent
04566ec250
commit
da24c3fc1b
@ -43,7 +43,7 @@ public interface AndroidSenseControllerService {
|
||||
*/
|
||||
@Path("device/{deviceId}/words")
|
||||
@POST
|
||||
@Feature(code = "keywords", name = "Add Keywords", description = "Send keywords to the device", type = "operation")
|
||||
@Feature(code = "keywords", name = "Add Keywords", description = "Send keywords to the device")
|
||||
Response sendKeyWords(@PathParam("deviceId") String deviceId, @QueryParam("keywords") String keywords);
|
||||
|
||||
/**
|
||||
@ -54,14 +54,12 @@ public interface AndroidSenseControllerService {
|
||||
*/
|
||||
@Path("device/{deviceId}/words/threshold")
|
||||
@POST
|
||||
@Feature(code = "threshold", name = "Add a Threshold", description = "Set a threshold for word in the device",
|
||||
type = "operation")
|
||||
@Feature(code = "threshold", name = "Add a Threshold", description = "Set a threshold for word in the device")
|
||||
Response sendThreshold(@PathParam("deviceId") String deviceId, @QueryParam("threshold") String threshold);
|
||||
|
||||
@Path("device/{deviceId}/words")
|
||||
@DELETE
|
||||
@Feature(code = "remove", name = "Remove Keywords", description = "Remove the keywords",
|
||||
type = "operation")
|
||||
@Feature(code = "remove", name = "Remove Keywords", description = "Remove the keywords")
|
||||
Response removeKeyWords(@PathParam("deviceId") String deviceId, @QueryParam("words") String words);
|
||||
|
||||
/**
|
||||
|
||||
@ -36,7 +36,7 @@ public interface ArduinoControllerService {
|
||||
|
||||
@Path("device/{deviceId}/bulb")
|
||||
@POST
|
||||
@Feature(code = "bulb", name = "Control Bulb", type = "operation", description = "Control Bulb on Arduino Uno")
|
||||
@Feature(code = "bulb", name = "Control Bulb", description = "Control Bulb on Arduino Uno")
|
||||
Response switchBulb(@PathParam("deviceId") String deviceId, @QueryParam("state") String state);
|
||||
|
||||
@Path("device/{deviceId}/controls")
|
||||
|
||||
@ -267,8 +267,8 @@ public class MQTTAdapterListener implements MqttCallback, Runnable {
|
||||
try {
|
||||
MQTTEventAdapterConstants.initialReconnectDuration = MQTTEventAdapterConstants.initialReconnectDuration
|
||||
* MQTTEventAdapterConstants.reconnectionProgressionFactor;
|
||||
Thread.sleep(MQTTEventAdapterConstants.initialReconnectDuration);
|
||||
startListener();
|
||||
Thread.sleep(MQTTEventAdapterConstants.initialReconnectDuration);
|
||||
connectionSucceeded = true;
|
||||
log.info("MQTT Connection successful");
|
||||
} catch (InterruptedException e) {
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
<br>
|
||||
</h4>
|
||||
|
||||
<form action="{{@unit.params.backendApiUri}}{{params.0.uri}}" method="{{method}}" style="padding-bottom: 20px;" id="form-{{operation}}">
|
||||
<form action="{{@unit.params.backendApiUri}}{{params.0.uri}}" method="{{params.0.method}}" style="padding-bottom: 20px;" id="form-{{operation}}">
|
||||
{{#each params.0.pathParams}}
|
||||
<input type="{{type}}" id="{{name}}" placeholder="{{name}}" class="form-control" data-param-type="path" value="{{value}}" />
|
||||
<br />
|
||||
|
||||
@ -37,8 +37,7 @@ public interface RaspberryPiControllerService {
|
||||
|
||||
@Path("device/{deviceId}/bulb")
|
||||
@POST
|
||||
@Feature(code = "bulb", name = "Bulb On / Off", type = "operation",
|
||||
description = "Switch on/off Raspberry Pi agent's bulb. (On / Off)")
|
||||
@Feature(code = "bulb", name = "Bulb On / Off", description = "Switch on/off Raspberry Pi agent's bulb. (On / Off)")
|
||||
Response switchBulb(@PathParam("deviceId") String deviceId, @QueryParam("state") String state);
|
||||
|
||||
/**
|
||||
|
||||
@ -50,8 +50,7 @@ public interface VirtualFireAlarmControllerService {
|
||||
@POST
|
||||
@Path("device/{deviceId}/buzz")
|
||||
@Permission(scope = "virtual_firealarm_user", permissions = {"device-mgt/virtual_firealarm/user"})
|
||||
@Feature(code = "buzz", name = "Buzzer On / Off", type = "operation",
|
||||
description = "Switch on/off Virtual Fire Alarm Buzzer. (On / Off)")
|
||||
@Feature(code = "buzz", name = "Buzzer On / Off", description = "Switch on/off Virtual Fire Alarm Buzzer. (On / Off)")
|
||||
Response switchBuzzer(@PathParam("deviceId") String deviceId, @QueryParam("protocol") String protocol,
|
||||
@FormParam("state") String state);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user