1 //******************************************************************
3 // Copyright 2014 Intel Corporation.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21 package org.iotivity.guiclient;
24 * OcProtocolStrings contains the IoTivity-specific constant values. To add another supported
25 * Resource or Interface type to this app, begin by adding the new strings here, and then
26 * find the places throughout the app where Resource-specific case switches occur, and add
27 * the newly-supported type there.
29 public interface OcProtocolStrings {
30 // OIC core protocol strings
31 public static final String COAP_CORE = "coap://224.0.1.187/oic/res";
32 public static final String RESOURCE_TYPE_QUERY = "?rt=";
33 public static final String INTERFACE_QUERY = "?if=";
34 // find resource queries
35 public static final String CORE_LIGHT = "core.light";
36 public static final String CORE_EDISON_RESOURCES = "core.edison.resources";
38 public static final String LIGHT_RESOURCE_URI = "/a/light";
39 public static final String LIGHT_RESOURCE_URI2 = "/light0";
40 public static final String LIGHT_RESOURCE_URI3 = "/a/light1";
41 public static final String ROOM_TEMPERATURE_RESOURCE_URI = "/temperature";
42 public static final String AMBIENT_LIGHT_RESOURCE_URI = "/ambientlight";
43 public static final String PLATFORM_LED_RESOURCE_URI = "/led";
44 // attribute keys for set() calls
45 public static final String LIGHT_SWITCH_RESOURCE_KEY = "state";
46 public static final String LIGHT_DIMMER_RESOURCE_KEY = "power";
47 public static final String ROOM_TEMPERATURE_RESOURCE_KEY = "temperature";
48 public static final String AMBIENT_LIGHT_RESOURCE_KEY = "ambientlight";
49 public static final String PLATFORM_LED_RESOURCE_KEY = "switch";