import com.codename1.bluetoothle.Bluetooth;

By using the above class, I can able to do the followings 
but I am facing problem while printing data to the bluetooth printer by 
using write method.

*able to do in bluetooth between mobile and portable bluetooth printer*
1. enable
2. permission
3. getting bluetooth id [address]
3. connection

*not able to to*

String service = "12ab";
String characteristic = "34cd";
String address = "34:81:F4:1A:45:1C";

*bt.write(this, address, service, characteristic, "DINAKARAN", false);*

after processing the above line, showing error as java.io.IOException. 
Device is not connected.
By using bt.wasConnected(address2) method showing as true and 
to make sure msg getting displayed in dialog window. It is fine.

Pl.required guidance, struggling over a period of 10days.


-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/890e4053-972e-4e69-b7b7-21e6de5f4d0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to