cordova-plugin-bluetoothle
cordova-plugin-bluetoothle copied to clipboard
Android Notify No Device Address
Hi Everyone. I have problem with notify, I am follow the step to use notify to send params.
[Documentation Example] var params = { "service":"1234", "characteristic":"ABCD", "value":"U3Vic2NyaWJlIEhlbGxvIFdvcmxk" //Subscribe Hello World };
but, Failed with message: {"error":"connect","message":"No device address"}
Thank you for your time, may you be given health.
Best Regards, Aksara Dewandra
Hi Aksara,
I had the same problem. Just add an "address" property to your params object. Of course you have to save the currently connected devices address for this somewhere and set the property to the correct address.