Giter Club home page Giter Club logo

android-simple-bluetooth-example's People

Contributors

bauerjj avatar desuto avatar khaliltb avatar mcampochiaro avatar quangtrung2402 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-simple-bluetooth-example's Issues

Connecting failed

I'm getting an error while pairing. the error message is as follows:

read failed, socket might closed or timeout

New logo/icon

Hi, I am a graphic designer, I want to help others in graphic design.

After I reviewed your project, you have no logo on this project. Therefore I want to contribute to this project by creating a new logo / icon. what do you think?

App Keeps Crashing When Connecting

so i am trying to connect to a tablet, i hope that works
i know this code is for microcontrollers

but whenever i try to connect the app keeps crashing and gives me this error

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.ahmedabdelmeged.bluetoothmcsample, PID: 5505
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter aVoid
at com.ahmedabdelmeged.bluetoothmc.BluetoothMC$ConnectBT.onPostExecute(BluetoothMC.kt)
at com.ahmedabdelmeged.bluetoothmc.BluetoothMC$ConnectBT.onPostExecute(BluetoothMC.kt:155)
at android.os.AsyncTask.finish(AsyncTask.java:662)
at android.os.AsyncTask.-wrap1(AsyncTask.java)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:679)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5468)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:671)

Turn on/off the led quickly, it stucks

Hi, i've detected if i turn on and turn off very quickly, it stucks, so i have to reset the arduino to work well again. I do not know if it is limited by the baud rate or whatever.

My scenario: i'm testing sending/receiving a String (3 chars) with a timer task, sending from Android with a 100ms period. So, Arduino receive it correctly, on, off, on, off... but after some executions, arduino stucks, i think that the bluetooth.available() condition change its states.

I've tried with a delay(5); after each on/off, improving the test, but i get stuck again after some seconds working rightly.

I've tried to thange the baud rate from my initial 9600 to some other, but it fails, i can not get it work if i change the baud rate.

bluetooth.begin(19200); //or some other standard speed rate, does not work anymore

Any ideas? Thx!!

I can not pair phone with the HC-06 [problem since Marshmallow and above]

Hi, i'm running your code, Android and Arduino both, my problem is that i can not pair my HC-06 device. However, the system bluetooth of myh phone can discover the HC-06 .... What's wrong? I see that "Discovery started" but the Broadcast Receiver never gets the connection.

I have no crashes, all is running right.

Offering to Copywrite

Hello, I will like to contribute to your project, I saw that there are some missing documentation such as About Us, and FAQs, I will like to do them for your project.

Connection failed

I got connection failed error when i try to connect any device even if paired or not paired. How can i solve this problem?

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.