Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data read from arduino HC05 is always empty #134

Open
damodharanj opened this issue Aug 30, 2023 · 2 comments
Open

Data read from arduino HC05 is always empty #134

damodharanj opened this issue Aug 30, 2023 · 2 comments

Comments

@damodharanj
Copy link

damodharanj commented Aug 30, 2023

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

@CS-Usman
Copy link

Did your problem got solved ? I am also working on HC-05 module need your help

@damodharanj
Copy link
Author

You gotta connect to the device before you read. Its a clutch unless you see the example code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants