Example usage for android.net.wifi WpsInfo PBC

List of usage examples for android.net.wifi WpsInfo PBC

Introduction

In this page you can find the example usage for android.net.wifi WpsInfo PBC.

Prototype

int PBC

To view the source code for android.net.wifi WpsInfo PBC.

Click Source Link

Document

Push button configuration

Usage

From source file:com.nest5.businessClient.Initialactivity.java

@Override
public void showDetails(WifiP2pDevice device) {
    Toast.makeText(mContext, "Conectando con: " + device.deviceName, Toast.LENGTH_SHORT).show();
    isConnecting = true;/*from  ww w.  j a v a  2s . c o  m*/
    WifiP2pConfig config = new WifiP2pConfig();
    config.deviceAddress = device.deviceAddress;
    config.wps.setup = WpsInfo.PBC;
    statusText.setText("Conectando con: " + device.deviceName);

    connect(config);

}