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")
|
@Path("device/{deviceId}/words")
|
||||||
@POST
|
@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);
|
Response sendKeyWords(@PathParam("deviceId") String deviceId, @QueryParam("keywords") String keywords);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -54,14 +54,12 @@ public interface AndroidSenseControllerService {
|
|||||||
*/
|
*/
|
||||||
@Path("device/{deviceId}/words/threshold")
|
@Path("device/{deviceId}/words/threshold")
|
||||||
@POST
|
@POST
|
||||||
@Feature(code = "threshold", name = "Add a Threshold", description = "Set a threshold for word in the device",
|
@Feature(code = "threshold", name = "Add a Threshold", description = "Set a threshold for word in the device")
|
||||||
type = "operation")
|
|
||||||
Response sendThreshold(@PathParam("deviceId") String deviceId, @QueryParam("threshold") String threshold);
|
Response sendThreshold(@PathParam("deviceId") String deviceId, @QueryParam("threshold") String threshold);
|
||||||
|
|
||||||
@Path("device/{deviceId}/words")
|
@Path("device/{deviceId}/words")
|
||||||
@DELETE
|
@DELETE
|
||||||
@Feature(code = "remove", name = "Remove Keywords", description = "Remove the keywords",
|
@Feature(code = "remove", name = "Remove Keywords", description = "Remove the keywords")
|
||||||
type = "operation")
|
|
||||||
Response removeKeyWords(@PathParam("deviceId") String deviceId, @QueryParam("words") String words);
|
Response removeKeyWords(@PathParam("deviceId") String deviceId, @QueryParam("words") String words);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -36,7 +36,7 @@ public interface ArduinoControllerService {
|
|||||||
|
|
||||||
@Path("device/{deviceId}/bulb")
|
@Path("device/{deviceId}/bulb")
|
||||||
@POST
|
@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);
|
Response switchBulb(@PathParam("deviceId") String deviceId, @QueryParam("state") String state);
|
||||||
|
|
||||||
@Path("device/{deviceId}/controls")
|
@Path("device/{deviceId}/controls")
|
||||||
|
|||||||
@ -267,8 +267,8 @@ public class MQTTAdapterListener implements MqttCallback, Runnable {
|
|||||||
try {
|
try {
|
||||||
MQTTEventAdapterConstants.initialReconnectDuration = MQTTEventAdapterConstants.initialReconnectDuration
|
MQTTEventAdapterConstants.initialReconnectDuration = MQTTEventAdapterConstants.initialReconnectDuration
|
||||||
* MQTTEventAdapterConstants.reconnectionProgressionFactor;
|
* MQTTEventAdapterConstants.reconnectionProgressionFactor;
|
||||||
Thread.sleep(MQTTEventAdapterConstants.initialReconnectDuration);
|
|
||||||
startListener();
|
startListener();
|
||||||
|
Thread.sleep(MQTTEventAdapterConstants.initialReconnectDuration);
|
||||||
connectionSucceeded = true;
|
connectionSucceeded = true;
|
||||||
log.info("MQTT Connection successful");
|
log.info("MQTT Connection successful");
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
|||||||
@ -44,7 +44,7 @@
|
|||||||
<br>
|
<br>
|
||||||
</h4>
|
</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}}
|
{{#each params.0.pathParams}}
|
||||||
<input type="{{type}}" id="{{name}}" placeholder="{{name}}" class="form-control" data-param-type="path" value="{{value}}" />
|
<input type="{{type}}" id="{{name}}" placeholder="{{name}}" class="form-control" data-param-type="path" value="{{value}}" />
|
||||||
<br />
|
<br />
|
||||||
|
|||||||
@ -37,8 +37,7 @@ public interface RaspberryPiControllerService {
|
|||||||
|
|
||||||
@Path("device/{deviceId}/bulb")
|
@Path("device/{deviceId}/bulb")
|
||||||
@POST
|
@POST
|
||||||
@Feature(code = "bulb", name = "Bulb On / Off", type = "operation",
|
@Feature(code = "bulb", name = "Bulb On / Off", description = "Switch on/off Raspberry Pi agent's bulb. (On / Off)")
|
||||||
description = "Switch on/off Raspberry Pi agent's bulb. (On / Off)")
|
|
||||||
Response switchBulb(@PathParam("deviceId") String deviceId, @QueryParam("state") String state);
|
Response switchBulb(@PathParam("deviceId") String deviceId, @QueryParam("state") String state);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -50,8 +50,7 @@ public interface VirtualFireAlarmControllerService {
|
|||||||
@POST
|
@POST
|
||||||
@Path("device/{deviceId}/buzz")
|
@Path("device/{deviceId}/buzz")
|
||||||
@Permission(scope = "virtual_firealarm_user", permissions = {"device-mgt/virtual_firealarm/user"})
|
@Permission(scope = "virtual_firealarm_user", permissions = {"device-mgt/virtual_firealarm/user"})
|
||||||
@Feature(code = "buzz", name = "Buzzer On / Off", type = "operation",
|
@Feature(code = "buzz", name = "Buzzer On / Off", description = "Switch on/off Virtual Fire Alarm Buzzer. (On / Off)")
|
||||||
description = "Switch on/off Virtual Fire Alarm Buzzer. (On / Off)")
|
|
||||||
Response switchBuzzer(@PathParam("deviceId") String deviceId, @QueryParam("protocol") String protocol,
|
Response switchBuzzer(@PathParam("deviceId") String deviceId, @QueryParam("protocol") String protocol,
|
||||||
@FormParam("state") String state);
|
@FormParam("state") String state);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user