![]() HasBleFeature = getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE) Private static final int REQUEST_ENABLE_BT = 1209 īoolean isConnected = void onCreate(Bundle initParameters() ![]() ![]() Private static final long SCAN_PERIOD = 10000 Int colorId = android.R.color.holo_red_light Int messageId = R.string.doesnt_support_ble Private BluetoothAdapter bluetoothAdapter public class BlogBLEActivity extends Activity implements OnItemClickListener Okay, following is the for my Activity which I am using. I want to know if my app is connected to any BLE device, so what are the steps to get notified by device in order to get updated data. But I am not getting how to read data (weight value) from it. I have a BLE device (scale) which measures weight. I am working on a Bluetooth Low Energy (BLE) app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |