Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
jflavio11 authored Feb 22, 2018
1 parent bf4a704 commit e6add97
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
}
})
// and register wifi connection listener
.registerWifiConnectionListener(new ConnectionResultListener() {
// and register wifi connection listener
.registerWifiConnectionListener(new ConnectionResultListener() {
@Override
public void successfulConnect(String SSID) {
Log.d("MyTag", "Success connecting to Access Point " + SSID);
Expand All @@ -96,16 +96,16 @@
}
})
// and after register all listeners you want, you sould enable wifi and connect to the access point
.enableWifi().connectToWifi();
// and after register all listeners you want, you sould enable wifi and connect to the access point
.enableWifi().connectToWifi();
**OR SIMPLY**
WifiConnector connector = new WifiConnector(this, "NEW_SSID", "NEW_BSSID", "WEP", "wifiPassword");
**OR SIMPLY**
WifiConnector connector = new WifiConnector(this, "NEW_SSID", "NEW_BSSID", "WEP", "wifiPassword");
connector.enableWifi();
connector.enableWifi();
connector.connectToWifi(new ConnectionResultListener() {
connector.connectToWifi(new ConnectionResultListener() {
@Override
public void successfulConnect(String SSID) {
Expand All @@ -131,7 +131,6 @@


### Important!
**WifiConnector instance must be implemented on Service or IntentService**

**Since 1.4 enableWifi() method is not on constructors anymore, you must call it explicity**
Since 1.2-beta1 listeners are not inside WifiConnector class, so you must call them as a single class.
Expand Down

0 comments on commit e6add97

Please sign in to comment.