Esempio 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);
   }
 }
Esempio 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());
 }