Giter Site home page Giter Site logo

Comments (6)

root-ansh avatar root-ansh commented on June 6, 2024

tried a few more times, its spawning the logs for everything, and not just my cell phone

from bluetooth-library.

omaraflak avatar omaraflak commented on June 6, 2024

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.

root-ansh avatar root-ansh commented on June 6, 2024

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.

root-ansh avatar root-ansh commented on June 6, 2024

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.

omaraflak avatar omaraflak commented on June 6, 2024

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.

root-ansh avatar root-ansh commented on June 6, 2024

yess , it seems that it is a device fault . i changed my device which has stopped multiple spawning.

from bluetooth-library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.