I am developing an app for humidity sensor. the sensor will send data to the app continuously every second. I need to show it on multiple textviews with an update every second.
Currently, My receiving part code is
@Override
public void onCharacteristicRead(BluetoothGatt gatt,
BluetoothGattCharacteristic characteristic, int status) {
if (status == BluetoothGatt.GATT_SUCCESS) if (BleUuid.READ_TIME
.equalsIgnoreCase(characteristic.getUuid().toString())) {
final String names = characteristic.getStringValue(0);
Textview1.setText(names);
}
}