
Originally Posted by
ra.ravi.rav
The problem is again the same when I select the option to send the message, ans its the permission denied error. However when in the line 15 I change the channel to 9 which is the standard OBEX Object Push service it works fine, but the messages are tranferred to inbox whose contents I cannot read.
Sadly I don't have two S60 devices to test on, unless there's some way I can get my phone to connect to itself via Bluetooth. It might be that you have to bypass OBEX, and use the low-level RFCOMM interface.
With regards to the threading issue, you can 'kill' one thread from another like this:
Code:
import e32, thread
def thread1():
global thread2running
thread2running = True
thread.start_new_thread(thread2, ())
e32.ao_sleep(5)
thread2running = False
def thread2():
global thread2running
while thread2running:
do_something()
thread1()