Ejemplo n.º 1
0
 @Override
 public void onGattValueReceived(String macAddress, UUID uuid, byte[] value) {
   if (Constants.NEWS.GATT_NEWS.getUuid().equals(uuid)) {
     updateHolderData(macAddress, uuid, value);
   }
 }
Ejemplo n.º 2
0
 @Override
 public void onServicesReady(String macAddress) {
   gattProviderNews.registerConnGattSub(gattListenNews);
   gattProviderNews.getGattCharacteristicRead(
       Constants.NEWS.GATT_SERVICE_NEWS.getUuid(), Constants.NEWS.GATT_NEWS.getUuid());
 }