1 //******************************************************************
3 // Copyright 2015 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 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
22 #ifndef EASYSETUP_ENROLLEE_SOFTAP_H__
23 #define EASYSETUP_ENROLLEE_SOFTAP_H__
26 #include "networkhandler.h"
31 * This file contains platform agnostic API for creation of Soft AP
32 * @Note : Some of the APIs of this file need to be modified by the OEM according to the device configuration
36 * This function verify if the Soft AP is created at Enrollee device.
37 * @return ::True, if Soft AP is created at Enrollee device.
38 * @Note : This API needs to be modified by the OEM according to the device configuration
41 bool ESSoftapAtEnrollee();
44 * This function verify if the Soft AP is created at Mediator device.
45 * @return ::True, if Soft AP is created at Mediator device.
46 * @Note : This API needs to be modified by the OEM according to the device configuration
49 bool ESSoftapAtMediator();
53 * This function finds which Device (Enrollee or Mediator) is creating Soft AP.
54 * @return ::DeviceRole (ENROLLEE or MEDIATOR)
55 * @Note : This API needs to be modified by the OEM according to the device configuration
58 DeviceRole ESSoftapHost();
61 * This function Initializes the EasySetup. This API must be called prior to invoking any other API
63 * @param ssid SSID of the target SoftAP network to which the Enrollee is connecting.
64 * @param passwd Password of the target SoftAP network to which the Enrollee is connecting
65 * @param NetworkEventCallback Callback function for result update
68 void ESCreateSoftap(const char * ssid, const char* passwd, NetworkEventCallback cb);
73 //#endif // __cplusplus
76 #endif /* EASYSETUP_ENROLLEE_SOFTAP_H__ */