@conf.commands.register
def srbt(peer, pkts, inter=0.1, *args, **kargs):
 s = conf.BTsocket(peer=peer)
 (a, b) = sndrcv(s, pkts, inter=inter, *args, **kargs)
 s.close()
 return (a, b)

@ conf . commands . register def srbt ( peer , pkts , inter = 0.1 , * args , ** kargs ) : s = conf . BTsocket ( peer = peer ) ( a , b ) = sndrcv ( s , pkts , inter = inter , * args , ** kargs ) s . close ( ) return ( a , b )
send and receive using a bluetooth socket .