07.08.2018, 11:40
(27.06.2017, 13:06)Igor68 Wrote: 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)
Where should i put that code? In Common Functions or in Resident script?