cordova-plugin-bluetoothle icon indicating copy to clipboard operation
cordova-plugin-bluetoothle copied to clipboard

Android Notify No Device Address

Open AksaraDewandra opened this issue 5 years ago • 2 comments

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

AksaraDewandra avatar Dec 01 '20 09:12 AksaraDewandra

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.

lupalabs avatar Jan 14 '21 10:01 lupalabs