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 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
23 #ifndef EASYSETUP_ENROLLEE_SOFTAP_H__
24 #define EASYSETUP_ENROLLEE_SOFTAP_H__
31 #define SOFTAP_SUCCESS 1
32 #define SOFTAP_FAILED 0
37 * This file contains the API declaration for creating & configuration for SoftAP
40 //This callback signagure may get changed as per the native implementation.
41 typedef void (*SoftAPCallbackNative)(int result, const char *ip, const char* mac_addr,
42 const char*device_name);
44 * This API creats the Soft AP using the platform specific native system calls.
45 * @Note This API to be implemented by the OEM if Enrollee device SoC supports SoftAP
47 * @param networkType NetworkType on which OnBoarding has to be performed.
48 * @param ssid SSID of the target SoftAP network to which the Enrollee is
50 * @param passwd Password of the target SoftAP network to which the Enrollee is
52 * @param SoftAPCallbackNative EventCallback for for updating the Enrollee OnBoarding status
53 * result to the application
56 void ESCreateSoftapNative(const char * ssid, const char* passwd, SoftAPCallbackNative cb);
63 #endif /* EASYSETUP_ENROLLEE_SOFTAP_H__ */