Comments (6)
@johnchtsai Please can you do the same as I said above? If you are just transmitting a data stream, you need to use the outputStream
property to get a raw data stream. If you use openMessageStream
, the library considers a newline to be the message delimiter, and if you aren't transmitting separate messages separated by newlines, this won't work and you won't receive any messages.
If you're using an ESP32 with built-in bluetooth, there is no baud rate AFAIK, as baud rate is only a property when using UART along a physical wire. When it's via Bluetooth or internally in the ESP32, there shouldn't be any baud rate, though I may be wrong. I know for a fact that this library does not take or use a baud rate.
from android-bluetooth-serial.
Can you verify with, say, a Windows PC or other app/device that the data is actually being transmitted?
from android-bluetooth-serial.
Can you verify with, say, a Windows PC or other app/device that the data is actually being transmitted?
@harry1453 its a ESP32 Bluetooth chip
from android-bluetooth-serial.
Could you check what message is being sent? The library expects messages to be delimited by a newline (\n
) character. If you want a different delimiter, you need to use the raw outputStream
.
from android-bluetooth-serial.
Have same question on ESP32. The device is actually transmitting. I wonder maybe the brud rate does not set right?
'
from android-bluetooth-serial.
I have same problem too. When i try another program from google play, my device working currectly. When i try to debug the openMessageStream() function, the "synchronized(inputStream)" never worked. If someone has any solution can you help me?
from android-bluetooth-serial.
Related Issues (15)
- Null checks
- Kotlin app HOT 2
- Uncaught exception thrown by finalizer, Socket not created. HOT 3
- BluetoothManager.getInstance() never null HOT 1
- Kotlin library HOT 1
- How can I receive binary data? HOT 2
- Google Play requires that apps target API level 29 or higher. HOT 1
- Java IO exception while using the library in kotlin HOT 5
- Check bluetooth is enabled
- BluetoothManager does not remove closed devices HOT 2
- Tiny typo HOT 2
- java.io.IOException: read failed, socket might closed or timeout in OpenSerialDevice HOT 11
- Newline driven approach HOT 1
- Importing Library HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-bluetooth-serial.