https://github.com/chmoder/atwdp
Android Things Wireless Device Provisioning
https://github.com/chmoder/atwdp
android android-things
Last synced: about 1 month ago
JSON representation
Android Things Wireless Device Provisioning
- Host: GitHub
- URL: https://github.com/chmoder/atwdp
- Owner: chmoder
- License: apache-2.0
- Created: 2018-01-03T01:30:39.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T03:38:43.000Z (over 8 years ago)
- Last Synced: 2025-04-12T22:08:48.187Z (about 1 year ago)
- Topics: android, android-things
- Language: Java
- Size: 28.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/chmoder/ATWDPC) to help make finding and connecting to your device easy.
#### Usage:
Module build.gradle
```groovy
dependencies {
...
compile 'org.chmoder.atwdp:ATWDP:0.2.0'
}
```
AndroidManifest.xml
```xml
```
SomeActivity.java
```java
@Override
protected void onCreate() {
...
ChmoderBLEManager chmoderBLEManager = ChmoderBLEManager.getInstance(this);
ChmoderWIFIManager chmoderWiFiManager = ChmoderWIFIManager.getInstance(this);
if(!chmoderWiFiManager.isConnected()) {
chmoderBLEManager.toggleBluetooth();
}
}
```