BluetoothSerial.withDelimiter('\r\n').then(() => {
setInterval(() => {
// BluetoothSerial.readUntilDelimiter("\n").then((v: any) => {
// setVal(JSON.stringify(v));
// })
BluetoothSerial.available().then((a: any) => {
setVal(a);
})
}, 3000);
})
The data i read from arduino HC05 is always empty. But bluetooth terminal app shows correct text
The data i read from arduino HC05 is always empty. But bluetooth terminal app shows correct text