Yes, I got it working by adjusting that one line my fix is listed here 
https://github.com/chen-fishbein/bluetoothle-codenameone/issues/13

On Thursday, August 29, 2019 at 3:21:23 PM UTC+1, Gareth Murfin wrote:
>
> Seems like the lib should pass BluetoothDevice.TRANSPORT_LE  here ?
> BluetoothGatt bluetoothGatt = 
> device.connectGatt(cordova.getActivity().getApplicationContext(), false, 
> bluetoothGattCallback);
>
> On Thursday, August 29, 2019 at 2:51:21 PM UTC+1, Gareth Murfin wrote:
>>
>> Painful indeed, it simply wont connect no matter what I do (im presuming 
>> the call back should be called if it connects). So I guess I will have to 
>> cancel this contract unfortunately. Not sure if its due to the device im 
>> connecting to which is a rasberry pi but it is meant to be bluetooth LE. Or 
>> maybe my phone isnt supported (samsung s7, android 8)..
>>
>> On Thursday, August 29, 2019 at 1:44:04 PM UTC+1, Gareth Murfin wrote:
>>>
>>> thanks Shai, this is a bluetooth LE device, is there something specific 
>>> I need to do to connect? rather than just calling connect()  ?
>>>
>>> On Thu, 29 Aug 2019 at 03:39, Shai Almog <[email protected]> wrote:
>>>
>>>> I'm guessing you're trying to connect to a bluetooth device instead of 
>>>> a bluetooth-LE device. Notice the LE which is a different standard. 
>>>> Generally bluetooth in all its forms is painful.
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to a topic in the 
>>>> Google Groups "CodenameOne Discussions" group.
>>>> To unsubscribe from this topic, visit 
>>>> https://groups.google.com/d/topic/codenameone-discussions/5hDDwbOFxyo/unsubscribe
>>>> .
>>>> To unsubscribe from this group and all its topics, send an email to 
>>>> [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/codenameone-discussions/fac02c23-34aa-4d9c-b26d-fbbf8de5ca85%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/fac02c23-34aa-4d9c-b26d-fbbf8de5ca85%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> -- 
>>> Gareth Murfin
>>> (Android Freelancer - www.garethmurfin.co.uk)
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/3a4cb18d-3734-4952-b080-f4724f6c9d30%40googlegroups.com.

Reply via email to