Comments (6)
tried a few more times, its spawning the logs for everything, and not just my cell phone
from bluetooth-library.
Well, since you're using a "modified version" of the library I'm not sure what is happening... Can you test the Play Store demo app and tell me if everything is okay ?
You can use this kind of code on your Arduino :
#include <SoftwareSerial.h>
// Initializing communication ports
SoftwareSerial mySerial(11, 10); // TX/RX pins
void setup() {
Serial.begin(9600);
mySerial.begin(9600);
}
String getMessage(){
String msg = "";
char a;
while(mySerial.available()) {
a = mySerial.read();
msg+=String(a);
}
return msg;
}
void loop(){
// Check if a message has been received
String msg = getMessage();
if(msg!=""){
Serial.println(msg);
}
// Send a string when 'm' is sent through the Serial
if(Serial.available()){
if(Serial.read()=='m'){
mySerial.println("HC-06 IS REPLYING :-)");
}
}
delay(10);
}
from bluetooth-library.
although i have an hc 05 module, i will still look into its code. Can you tell me what ThreadHelper class is doing?
from bluetooth-library.
and yes,the current playstore's app is also listing my single device multiple times on start scanning .Can it be a problem of the mobile phone am using to run the app?
from bluetooth-library.
Can you tell me what ThreadHelper class is doing?
It's simply used to run the listener in the UI thread.
and yes,the current playstore's app is also listing my single device multiple times on start scanning .Can it be a problem of the mobile phone am using to run the app?
Can you do the test with the settings app of your phone ? Is it listing the device multiple times ?
from bluetooth-library.
yess , it seems that it is a device fault . i changed my device which has stopped multiple spawning.
from bluetooth-library.
Related Issues (20)
- String Translate ... HOT 2
- Multiple Bluetooth Client Connections HOT 1
- AutoConnect Error HOT 1
- Allow sending and receiving data (bytes) without with use of CR LF delimiters HOT 3
- NullPointerException when starting another activity HOT 3
- Add support for PIN HOT 2
- Multiple Clients. HOT 1
- About scanning the nearby bluetooth device HOT 7
- How to set baudrate? HOT 1
- onMessage method is not calling after device sending data to application HOT 2
- Android 9 device not visible in scan HOT 1
- Cannot connect after close an activity and reopen again. HOT 1
- Can not terminate socket on activity close. HOT 2
- startDiscovery impossible HOT 7
- Connected but chat not working HOT 1
- Connected but chat not working HOT 2
- SocketReader read() returning null HOT 2
- Android Bluetooth Classic RFCOMM connection failing, getUUIDs() returns no SPP UUID HOT 2
- Audio not working in bluetooth headphone when connected to bluetooth HOT 1
- My Application restart when I connect/disconnect bluetooth USB 5.0 Bluetooth Dongle
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 bluetooth-library.