View Single Post
Posts: 308 | Thanked: 62 times | Joined on Jun 2009 @ Turkiye
#1
hi everybody
lately im working on an exciting project
but i got a problem about about sending two variables at same time via bluez module
therefore,i need to send these two variables as a tuple object , i guess

infact i found a way send two variables at same time as string but it's too laggy and sometimes causing errors
here is my solution which is so laggy:
on client:
def senderfunction():
socket.send(str(a)+' '+str(b))
on server:
a=int(incomingdata[0:3])
b=int(incomingdata[4:len(incomingdata)]

please help