Git Product home page Git Product logo

android-multi-bluetooth-library's People

Contributors

arissa34 avatar reixd 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  avatar  avatar  avatar  avatar  avatar  avatar

android-multi-bluetooth-library's Issues

It just doesn't work.

I just extended BluetoothActivity in the new project and then I got:
java.lang.NoClassDefFoundError: de.greenrobot.event.EventBus.

gradle maven repository dead

Using the repo specified on git doesn't seem to work.
I don't know much about how the gradle dependencies are set up but I'm using the following:

repositories { maven { url "http://sfdn.ddns.net/maven2/" } mavenCentral() }

I noticed you use a different one altogether in the sample projects but that repo link seems to be dead as well

repositories { maven { url "http://192.168.1.99/maven2/" } mavenCentral() }

Without BluetoothActivity & Bluetooth Fragment

Hi All,

Can't we create class which can be used for Bluetooth connectivity implementation.

Instead of Bluetooth Activity & Fragment , we can use this class.

Currently I am using App compact so can't use Bluetooth Activity or Fragment.

Open for suggestions & improvement comments.

Best Regards,
Sajid

can't found "EnableBluetoothDiscoveryActivity.class"

the lib and sample can't compilation or operation


Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {net.reixd.sample/com.ramimartin.multibluetooth.activity.EnableBluetoothDiscoveryActivity};


i can't found this class file in Android-Multi-Bluetooth-Library,how can I do

Missing Unit tests

How we can rely on this library if there is no single unit test to cover it? Do you trust it? You can't.
Please add unit test so one can easy prove if functionality is as declared. Thanks

Connection failure

Hi,
When I try to run the application having 1 client, I am able to detect the device and pair it with the server successfully but getting an error on the client side, "Client connexion error" and it goes in an endless loop.
And when I try to debug I get the below error.

09-27 16:57:25.413 8000-8121/com.ramimartin.sample.multibluetooth W/BluetoothAdapter: getBluetoothService() called with no BluetoothManagerCallback
09-27 16:57:25.424 21958-22043/? W/bt-rfcomm: rfc_port_closed
09-27 16:57:25.425 21958-22065/? W/bt-btif: invalid rfc slot id: 6986
09-27 16:57:25.434 8000-8121/com.ramimartin.sample.multibluetooth W/BT: Fallback failed. Cancelling.
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:517)
at android.bluetooth.BluetoothSocket.waitSocketSignal(BluetoothSocket.java:494)
at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:324)
at com.ramimartin.multibluetooth.bluetooth.client.BluetoothConnector$FallbackBluetoothSocket.connect(BluetoothConnector.java:206)
at com.ramimartin.multibluetooth.bluetooth.client.BluetoothConnector.connect(BluetoothConnector.java:60)
at com.ramimartin.multibluetooth.bluetooth.client.BluetoothClient.run(BluetoothClient.java:54)
at java.lang.Thread.run(Thread.java:818)

                                                                    [ 09-27 16:57:25.434  8000: 8121 E/         ]
                                                                    ===> mSocket IOException
                                                                    java.io.IOException: ===> Could not connect to device: 08:62:66:67:70:24
                                                                        at com.ramimartin.multibluetooth.bluetooth.client.BluetoothConnector.connect(BluetoothConnector.java:75)
                                                                        at com.ramimartin.multibluetooth.bluetooth.client.BluetoothClient.run(BluetoothClient.java:54)
                                                                        at java.lang.Thread.run(Thread.java:818)

Can anyone help me out with this??

Thanks.

Gradle import not working

When I try to import your library I get:

Error:(25, 13) Failed to resolve: com.ramimartin.multibluetooth:AndroidMultiBluetoothLibrary:1.1-SNAPSHOT

Any ideas?

Mac-Addresses of the conntected devices

I see there is a method for sending directly to one device:
public void sendBytes(final String adressMacTarget, final byte[] message);

But i cant figure out where to get the mac address.

Isn't there an thrown event that giving me the mac address of the device that has connected to my server?

Client server scanning and connection issue

I am trying to create a client- server network using this code and I am able to run the application but I am unable to scan the near by devices and unable to connect the clients to server and send the message.
Need help in solving this issue.

Sample code fails to connect

The sample code provided doesn't seem to work. I am attempting a BT connection between a Android 5.0 and a 4.2 using the sample code provided; however, I am constantly thrown the following error trace:

W/BT: Fallback failed. Cancelling.
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
                                                                          at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:581)
                                                                          at android.bluetooth.BluetoothSocket.waitSocketSignal(BluetoothSocket.java:558)
                                                                          at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:374)
                                                                          at com.ramimartin.multibluetooth.library.bluetooth.client.BluetoothConnector$FallbackBluetoothSocket.connect(BluetoothConnector.java:203)
                                                                          at com.ramimartin.multibluetooth.library.bluetooth.client.BluetoothConnector.connect(BluetoothConnector.java:59)
                                                                          at com.ramimartin.multibluetooth.library.bluetooth.client.BluetoothClient.run(BluetoothClient.java:54)
                                                                          at java.lang.Thread.run(Thread.java:841)
                                                                      
                                                                      
                                                                      [ 08-12 07:29:56.063 23435:23860 E/         ]
                                                                      ===> mSocket IOException
                                                                      java.io.IOException: ===> Could not connect to device: 10:D3:8A:47:0E:DC
                                                                          at com.ramimartin.multibluetooth.library.bluetooth.client.BluetoothConnector.connect(BluetoothConnector.java:74)
                                                                          at com.ramimartin.multibluetooth.library.bluetooth.client.BluetoothClient.run(BluetoothClient.java:54)
                                                                          at java.lang.Thread.run(Thread.java:841)

need not get mac address to start many server

Server: Here I declare four BluetoothSockets. Because accept () is a blocking operation, once the connection is successful, it will return to BluetoothSocket, and then continue to wait for the next connection. In this way, we have achieved multiple connections. UUID is the identifier of the server. After obtaining the BluetoothSocket, we can perform related operations to obtain input and output streams. To communicate with each other. by there

You can connect with bluetooth HC-06?

I need to connect to a Bluetooth device HC-06. I can connect as a client with the onDeviceSelectedForConnection ("20: 14: 04: 09: 17: 48") function. It would be possible to connect as Server?

The works they try and not worked is mBluetoothManager.createServeur ("20: 14: 04: 09: 17: 48");

You know someone who has tried to do this? Thank you. Excuse me for my bad english! Greetings and excellent library

createClient(mAddressMac) never stops to work

I tried pretty much every possible thing I came up with to stop it but...

Once called "createClient(mAddressMac) it starts a new Thread, which constantly tries to establish connection with chosen device. I found myself helpless in stopping it.
As I read into you library it should stop when disconnectClient() or even resetClient() is called but it won't. It keeps trying to establish connection, even if you completely turn off Bluetooth, call "closeAllConexion", try to create Connection with another "server" or change your mode from client to server.

Is there something that I'm missing? :-(

Can no longer obtain own bluetooth address

Using
android.provider.Settings.Secure.getString(mActivity.getContentResolver(), "bluetooth_address");
is no longer allowed for 7.0+ devices so the current method of using UUID's will no longer work.

I think the only alternative is to use a pre-set list of 7 UUIDS and listen for all on the host.
Then each client will have to try each UUID until one works or fail.

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.