Hi, i want to manage 2 type of Exception lightblue._obexcommon.OBEXError
1) lightblue._obexcommon.OBEXError: (111, 'Connection refused')
2) lightblue._obexcommon.OBEXError: (11, 'Resource temporarily unavailable')
how i can do it?
example:
try:
lightblue.obex.sendfile(device.getAddr(), c[1],"advertisement.jpg")
except lightblue._obexcommon.OBEXError????????????:
print "Connection refused!"
except lightblue._obexcommon.OBEXError????????????:
print "Resource temporarily unavailable!"