This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.grlewis.wifithermocouple; | |
import android.app.Service; | |
import android.content.ComponentName; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.ServiceConnection; | |
import android.os.Binder; | |
import android.os.IBinder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.grlewis.cufftest; | |
import android.bluetooth.BluetoothGatt; | |
import com.polidea.rxandroidble2.RxBleCustomOperation; | |
import com.polidea.rxandroidble2.internal.connection.RxBleGattCallback; | |
import io.reactivex.Observable; | |
import io.reactivex.Scheduler; | |
import io.reactivex.annotations.NonNull; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
The RxJava2-compatible version of the great Android Bluetooth LE library RxAndroidBle is out. | |
There are some changes I found a bit confusing and I'm hoping the discussion and code here | |
may help others. | |
The authors have retained the convention that the device.establishConnection() method | |
returns an Observable that emits one item: the connection to the Bluetooth device. | |
This Observable<RxBleConnection> may signal errors like "timeout" or "already connected" | |
but--importantly--it will NEVER call the Subscriber's .onComplete() handler. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html>Simple <b>Java</b> application that includes a class with <code>main()</code> method</html> |