I tried to execute the follwing code snippet on a 6120 Classic
and on a E90 communicator - the code on 6120 worked fine but
seems that the communicater does not get ab answer within STAT so
"END" will never be reached...
Does somebody know why - is there an alternative for this snippet?
import messaging, e32
def STAT(std): # parameter is the answer from the os
global lock; global i
if std == messaging.ESent: # successfully sending
print("Message has been sent"); lock.signal(); return 1 # unlock app
elif std == messaging.ESendFailed:
print("Unable to send message"); lock.signal(); return 0
lock = e32.Ao_lock()