1 //******************************************************************
3 // Copyright 2016 Samsung Electronics All Rights Reserved.
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 #ifndef OC_DIRECT_PAIRING_H_
22 #define OC_DIRECT_PAIRING_H_
30 OCDirectPairing(OCDPDev_t *ptr);
32 * Function to get the host address of direct pairing device.
34 * @return Returns host address in the format
35 * <coaps>:IP:securePort
37 std::string getHost();
40 * Function to get the device ID of the direct pairing device.
42 * @return Returns device ID (UUID)
44 std::string getDeviceID();
47 * Function to get the pairing methods supported by direct pairing device.
49 * @return Returns vector of pairing methods supported.
54 std::vector<OCPrm_t> getPairingMethods();
57 * Function to get the connectivity Type.
59 * @return Returns connectivity Type
61 OCConnectivityType getConnType();
69 #endif //OC_DIRECT_PAIRING_H_