2 * ***************************************************************
4 * Copyright 2015 Samsung Electronics All Rights Reserved.
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
20 * ****************************************************************
23 package org.iotivity.service.easysetup.mediator;
25 public class IpOnBoardingConnection implements OnBoardingConnection {
27 private boolean mIsConnected;
29 private String mHardwareAddress;
30 private String mDeviceName;
34 * After creating the Soft AP at Mediator & on-boarding the-
35 * -Enrollee device on it provisioning needs to be delayed by at least 2000 ms for Android Mediator
37 private int mThrottlingDelay = 2000 ;
39 int getThrottlingDelay() {
40 return mThrottlingDelay;
43 IpOnBoardingConnection(boolean enrolleeOnboarded) {
46 mIsConnected = enrolleeOnboarded; // Always true for this constructor
49 IpOnBoardingConnection(){}
51 public void setHardwareAddress(String address) {
52 mHardwareAddress = address;
55 public String getHardwareAddress() {
56 return mHardwareAddress;
59 public void setDeviceName(String name) {
63 public String getDeviceName() {
67 public void setConnectivity(boolean connected) {
68 mIsConnected = connected;
71 public void setIp(String ip) {
75 public String getIp() {
80 public String getDesc() {
85 public boolean isConnected() {
90 public Object getConnection() {