fragment中怎么读取数据库的数据
1个回答
展开全部
d broadcastUpdate(final String action,final BluetoothGattCharacteristic characteristic){
final Intent intent = new Intent(action);
if(UUID_HEART_RATE_MEASUREMENT.equals(characteristic.getUuid())){
int flag = characteristic.getProperties();
int format = -1;
if((flag & 0x01)!= 0){
format = BluetoothGattCharacteristic.FORMAT_UINT16;
Log.d(TAG,"Heart Rate format UINT16.");
}else{
format = BluetoothGattCharacteristic.FORMAT_UINT8;
Log.d(TAG,"Heart Rate format UINT8.");
}
final Intent intent = new Intent(action);
if(UUID_HEART_RATE_MEASUREMENT.equals(characteristic.getUuid())){
int flag = characteristic.getProperties();
int format = -1;
if((flag & 0x01)!= 0){
format = BluetoothGattCharacteristic.FORMAT_UINT16;
Log.d(TAG,"Heart Rate format UINT16.");
}else{
format = BluetoothGattCharacteristic.FORMAT_UINT8;
Log.d(TAG,"Heart Rate format UINT8.");
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |