com.polidea.rxandroidble.internal.RxBleLog Java Examples

The following examples show how to use com.polidea.rxandroidble.internal.RxBleLog. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BleCenterManager.java    From EasyBle with Apache License 2.0 5 votes vote down vote up
/**
 * init BleCenterManager with any Android context, can only call once
 * @param context
 */
public void init(Context context) {
    mContext = context;
    mRxBleClient = RxBleClient.create(mContext);
    RxBleClient.setLogLevel(RxBleLog.DEBUG);
    setBleConfig(new BleConfig.BleConfigBuilder().setStartScanAfterDisconnected(false).setStopScanAfterConnected(false).createBleConfig());
}
 
Example #2
Source File: BleCenterManager.java    From EasyBle with Apache License 2.0 5 votes vote down vote up
/**
 * init BleCenterManager with any Android context and ble config, can only call once
 * @param context
 */
public void init(Context context,BleConfig bleConfig){
    mContext = context;
    mRxBleClient = RxBleClient.create(mContext);
    RxBleClient.setLogLevel(RxBleLog.DEBUG);
    setBleConfig(bleConfig);
}