I'm trying to use the plugin in NSB AppStudio. bluetoothSerial.isEnabled(success, unsuccess) gives me: 'Bluetooth is disabled' or 'OK' correctly according to the status of BT : Off or On, therefore i assume that the program is working, but bluetoothSerial.list(Success, Unsuccess) gives, in Success(result), this result: [object Object],[object Object],[object Object],[object Object],[object Object] where i suppose it should give a list of the existing Mac Addresses (??) What's more: MacAddress = '00:12:D1:7B:63:32' (got from another app for MAC finding) in bluetoothSerial.connect(MacAddress, ConnectSuccess, ConnectFailure) gives 'Unable to connecto to device' Anybody has any tips? Is it normal to receive those strings or is there any anomaly? |
@carlocarlinilist is returning JSON object with information about paired or discovered devices. The device you're connecting to with connect must support generic Bluetooth Serial Port Profile (SPP) |