arissa34 / android-multi-bluetooth-library Goto Github PK
View Code? Open in Web Editor NEWAndroid Multi Bluetooth Library http://arissa34.github.io/Android-Multi-Bluetooth-Library/
Android Multi Bluetooth Library http://arissa34.github.io/Android-Multi-Bluetooth-Library/
can you send files using this library?
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
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.
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
I cannot build in Android Studio 3.2.1 with buildToolsVersion 28.0.3
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?
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
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
Marshmallow device do no make server and dont even connect as client..!!
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.
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
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? :-(
Hi, I wanted to ask if it's possible to stream music to multiple Bluetooth speakers.
Thanks in advance and Best regards.
I just extended BluetoothActivity in the new project and then I got:
java.lang.NoClassDefFoundError: de.greenrobot.event.EventBus.
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)
When I try to import your library I get:
Error:(25, 13) Failed to resolve: com.ramimartin.multibluetooth:AndroidMultiBluetoothLibrary:1.1-SNAPSHOT
Any ideas?
I'm looking to bind this project on Xamarin. I would need the jar to do so, thanks.
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.
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() }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.