Skip to content

chmoder/ATWDP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATWDP

Android Things Wireless Device Provisioning

This is an android library to help connect your android things device to a WiFi network via Bluetooth Low Energy. There is a companion app to help make finding and connecting to your device easy.

Usage:

Module build.gradle

dependencies {
  ...
  compile 'org.chmoder.atwdp:ATWDP:0.2.0'
}

AndroidManifest.xml

<application
  ...
  android:name="org.chmoder.atwdp.ChmoderApplication">

SomeActivity.java

@Override
protected void onCreate() {    
  ...
  ChmoderBLEManager chmoderBLEManager = ChmoderBLEManager.getInstance(this);
  ChmoderWIFIManager chmoderWiFiManager = ChmoderWIFIManager.getInstance(this);

  if(!chmoderWiFiManager.isConnected()) {
      chmoderBLEManager.toggleBluetooth();
  }
}

About

Android Things Wireless Device Provisioning

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages