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 ES_ENROLLEE_COMMON_H_
22 #define ES_ENROLLEE_COMMON_H_
33 * @brief Data structure delivered from mediator, which provides WiFi information
37 char ssid[OIC_STRING_MAX_VALUE]; /**< Ssid of the Enroller**/
38 char pwd[OIC_STRING_MAX_VALUE]; /**< Pwd of the Enroller**/
39 WIFI_AUTHTYPE authtype; /**< Auth type of the Enroller**/
40 WIFI_ENCTYPE enctype; /**< Encryption type of the Enroller**/
41 void *userdata; /**< Vender-specific data**/
45 * @brief Data structure delivered from mediator, which provides device configuration information
49 char location[OIC_STRING_MAX_VALUE]; /**< GPS information of device. Longitude and latitude in json format **/
50 char language[OIC_STRING_MAX_VALUE]; /**< IETF language tag using ISO 639X **/
51 char country[OIC_STRING_MAX_VALUE]; /**< ISO Country Code (ISO 3166-1 Alpha-2) **/
52 void *userdata; /**< Vender-specific data**/
56 * @brief Data structure delivered from mediator, which provides Cloud server information
60 char authCode[OIC_STRING_MAX_VALUE]; /**< Auth code issued by OAuth2.0-compatible account server **/
61 char authProvider[OIC_STRING_MAX_VALUE]; /**< Auth provider ID **/
62 char ciServer[OIC_STRING_MAX_VALUE]; /**< Cloud interface server URL which an Enrollee is going to registered **/
63 void *userdata; /**< Vender-specific data**/
67 * @brief Data structure stored for Device property which includes a WiFi and device configuration.
72 * @brief Data structure indicating WiFi configuration of Enrollee
76 WIFI_MODE mode[NUM_WIFIMODE];
81 * @brief Data structure indicating device configuration of Enrollee
85 char deviceName[OIC_STRING_MAX_VALUE];
86 char modelNumber[OIC_STRING_MAX_VALUE];
91 * A set of functions pointers for callback functions which are called after provisioning data is
92 * received from Mediator.
96 void (*WiFiProvCb) (ESWiFiProvData *);
97 void (*DevConfProvCb) (ESDevConfProvData *);
98 void (*CloudDataProvCb) (ESCloudProvData *);
99 } ESProvisioningCallbacks;
106 #endif //ES_ENROLLEE_COMMON_H_