|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
|
|
|
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* WSO2 Inc. licenses this file to you under the Apache License,
|
|
|
|
* WSO2 Inc. licenses this file to you under the Apache License,
|
|
|
|
* Version 2.0 (the "License"); you may not use this file except
|
|
|
|
* Version 2.0 (the "License"); you may not use this file except
|
|
|
@ -81,8 +81,8 @@ public class ConnectedCupControllerService {
|
|
|
|
@Path("controller/coffeelevel")
|
|
|
|
@Path("controller/coffeelevel")
|
|
|
|
@GET
|
|
|
|
@GET
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
@Feature(code = "coffeelevel", name="Coffeelevel", description = "read coffeelevel from this device", type =
|
|
|
|
@Feature( code="coffeelevel", name="Coffee Level", type="monitor",
|
|
|
|
"monitor")
|
|
|
|
description="Request Coffee Level from Connected cup")
|
|
|
|
public SensorRecord readCoffeeLevel(@HeaderParam("owner") String owner,
|
|
|
|
public SensorRecord readCoffeeLevel(@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("deviceId") String deviceId,
|
|
|
|
@Context HttpServletResponse response) {
|
|
|
|
@Context HttpServletResponse response) {
|
|
|
@ -121,8 +121,8 @@ public class ConnectedCupControllerService {
|
|
|
|
@Path("controller/temperature")
|
|
|
|
@Path("controller/temperature")
|
|
|
|
@GET
|
|
|
|
@GET
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
|
|
@Feature(code = "temperature", name="Temperature", description = "read temperature from this device", type =
|
|
|
|
@Feature( code="temperature", name="Temperature", type="monitor",
|
|
|
|
"monitor")
|
|
|
|
description="Request Temperature reading from Connected cup")
|
|
|
|
public SensorRecord readTemperature(@HeaderParam("owner") String owner,
|
|
|
|
public SensorRecord readTemperature(@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("deviceId") String deviceId,
|
|
|
|
@Context HttpServletResponse response) {
|
|
|
|
@Context HttpServletResponse response) {
|
|
|
|