Conversation
|
Is there any example that can POC multi connection? |
|
It's only working on Android. Here is the small ionic project I created to test it. I hope it will help you. |
|
@Shikoruma my goal is to create 2 serial port connection over bluetooth, In my case, when I start the second connection, the first connection will be colsed. Thanks . |
|
Ionic plugin are in fact cordova plugin. From your code snippet I don't see were the error is comming from. I cant test your code with just the js file |
|
Oops, belowing are my whole cordova project file. Thanks a again. |
|
Ok I found my mistake. isConnected take also a macAdress because you want to test a particular connection. I also forget to test if the given address is actualy in the context map. Thank you for pointing that issue. |
|
Hi, Shikoruma when I use function openPort in your example app = { }, openPort2: function() { }, this code is no work for me, BUT !!! When we change to this code app = { }, openPort2: function() { }, Strangely, It works @@".... Anyway, thanks for your help @w@/ |
|
Thank you for the PR - there are a couple of merge conflicts. Appreciate you making this PR! <3 |
|
Try this plugin https://github.com/bugnano/cordova-plugin-networking-bluetooth |
@lovelyelfpop Does that support multiple clients connect to a host? |
|
@filipef101 Doesn't that depend on the host? |
|
@bittelc I think this looks good. What do you think @dominiquejb |
|
Ya, looks fine to me @braedongough , let's send it through. |
|
@braedongough @bittelc still waiting for your improvements as discussed last tactical sync |
Just create context in order to allow multiple connections.
It keeps full backward compatibility with the original version.