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