|
|
@ -1,5 +1,6 @@ |
|
|
/* |
|
|
/* |
|
|
* Copyright (C) 2013 The Android Open Source Project |
|
|
* Copyright (C) 2013 The Android Open Source Project |
|
|
|
|
|
* Copyright (C) 2017 Louis-Guillaume Dubois |
|
|
* |
|
|
* |
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
* you may not use this file except in compliance with the License. |
|
|
* you may not use this file except in compliance with the License. |
|
|
@ -14,7 +15,7 @@ |
|
|
* limitations under the License. |
|
|
* limitations under the License. |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
package com.example.android.bluetoothlegatt; |
|
|
package fr.centralesupelec.students.clientble; |
|
|
|
|
|
|
|
|
import android.app.Service; |
|
|
import android.app.Service; |
|
|
import android.bluetooth.BluetoothAdapter; |
|
|
import android.bluetooth.BluetoothAdapter; |
|
|
@ -53,15 +54,15 @@ public class BluetoothLeService extends Service { |
|
|
private static final int STATE_CONNECTED = 2; |
|
|
private static final int STATE_CONNECTED = 2; |
|
|
|
|
|
|
|
|
public final static String ACTION_GATT_CONNECTED = |
|
|
public final static String ACTION_GATT_CONNECTED = |
|
|
"com.example.bluetooth.le.ACTION_GATT_CONNECTED"; |
|
|
"fr.cenralesupelec.students.clientble.ACTION_GATT_CONNECTED"; |
|
|
public final static String ACTION_GATT_DISCONNECTED = |
|
|
public final static String ACTION_GATT_DISCONNECTED = |
|
|
"com.example.bluetooth.le.ACTION_GATT_DISCONNECTED"; |
|
|
"fr.centralesupelec.students.clientble.ACTION_GATT_DISCONNECTED"; |
|
|
public final static String ACTION_GATT_SERVICES_DISCOVERED = |
|
|
public final static String ACTION_GATT_SERVICES_DISCOVERED = |
|
|
"com.example.bluetooth.le.ACTION_GATT_SERVICES_DISCOVERED"; |
|
|
"fr.centralesupelec.students.clientble.ACTION_GATT_SERVICES_DISCOVERED"; |
|
|
public final static String ACTION_DATA_AVAILABLE = |
|
|
public final static String ACTION_DATA_AVAILABLE = |
|
|
"com.example.bluetooth.le.ACTION_DATA_AVAILABLE"; |
|
|
"fr.centralesupelec.students.clientble.ACTION_DATA_AVAILABLE"; |
|
|
public final static String EXTRA_DATA = |
|
|
public final static String EXTRA_DATA = |
|
|
"com.example.bluetooth.le.EXTRA_DATA"; |
|
|
"fr.centralesupelec.students.clientble.EXTRA_DATA"; |
|
|
|
|
|
|
|
|
/* TODO |
|
|
/* TODO |
|
|
public final static UUID UUID_HEART_RATE_MEASUREMENT = |
|
|
public final static UUID UUID_HEART_RATE_MEASUREMENT = |