06.02.2018, 15:22
Hi!!
I am trying to read a value from a custom made BLE device, the device was created using the heart rate protocol,
I used the example of LM as Bluetooth 4.0 gateway http://openrb.com/lm-as-bluetooth-4-0-gateway/
but I cant make it work...
Also found some information about gatttool, but with no success...
and using..
I get "connect failed" error
the device is working, and it connects NRF Connect on my phone...
If anyone have any idea how to make it work?
Thank you!
I am trying to read a value from a custom made BLE device, the device was created using the heart rate protocol,
I used the example of LM as Bluetooth 4.0 gateway http://openrb.com/lm-as-bluetooth-4-0-gateway/
but I cant make it work...
Also found some information about gatttool, but with no success...
and using..
Code:
require('ble')
ble.up()
sock = ble.sock()
res,err=ble.settimeout(sock, 45)
res, err = ble.connect(sock, "XX:XX:XX:...",true)
log(res,err)
ble.close(sock)
I get "connect failed" error
the device is working, and it connects NRF Connect on my phone...
If anyone have any idea how to make it work?
Thank you!