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 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
24 * This file contains IP network handling functionality for Enrollee device
27 #ifndef ES_NETWORK_HANDLER_H_
28 #define ES_NETWORK_HANDLER_H_
32 #include "easysetup.h"
37 #define MAXNETCREDLEN 20
42 * Callback function for updating the Network status to the subscribers
44 * @param esResult ESResult provides the current state of the network connection status
46 typedef void (*NetworkEventCallback)(ESResult esResult);
50 OCConnectivityType type;
54 char ssid[MAXSSIDLEN];
59 void ConnectToWiFiNetwork(const char *ssid, const char *pass, NetworkEventCallback);
60 ESResult getCurrentNetworkInfo(OCConnectivityType targetType, NetworkInfo *info);