27.06.2017, 13:06
Hi, help, please. I can not connect to the device bluetooth. All packages are installed. With a universal profile the device works, but there is no script.
require('ble')
ble.up()
sock = ble.sock()
ble.settimeout(sock, 30)
res = ble.connect(sock, "df:54:50:42:0b:a4")
log(res)
ble.close(sock)
require('ble')
ble.up()
sock = ble.sock()
ble.settimeout(sock, 30)
res = ble.connect(sock, "df:54:50:42:0b:a4")
log(res)
ble.close(sock)