Juliovaz

Results 28 comments of Juliovaz

Thank you, that helped us.

Thanks for this @igorwessel 🚀 This will help us a lot

You can use the method BluetoothSerial.readFromDevice() to read data sent by device. Use a setInterval and execute or you can add a event listener DEVICE_READ, consult the file RTCBluetoothSerialModule.java on...

Sure, for exemple: import BluetoothSerial from 'react-native-bluetooth-serial'; import { Buffer } from 'buffer'; global.Buffer = Buffer; receiveDataFromDevice = async () => { const response = await BluetoothSerial.readFromDevice(); return response; }...

@ramacha7 , Hello friend! you can see in this file, methods that have a "@ReactMethod" you can implements in the your .js code. https://github.com/rusel1989/react-native-bluetooth-serial/blob/master/android/src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialModule.java And in this file you can...

@ramacha7 Yeah, you can! Maybe you can need adjust the data received using \r

@ramacha7 You should use async await cuz this method readFromDevice return a promise. example: const handleRead = async () => { console.log("entered read function"); const result = await BluetoothSerial.readFromDevice(); setreaddata(result);...

@ramacha7 you pair the device with your cellphone? you only can read the data only if the devices is paired.

@ramacha7 I think that how you pair into android settings should work. But I would try pair using pairDevice() check if has another behavior.

Hi @taj567 , how are u? Did you try to use async wait without o `.then()` ? Maybe that way it will work ```javascript readFromDevice = async (id) => {...