@conf.commands.register
def srbt1(peer, pkts, *args, **kargs):
 (a, b) = srbt(peer, pkts, *args, **kargs)
 if (len(a) > 0):
  return a[0][1]

@ conf . commands . register def srbt1 ( peer , pkts , * args , ** kargs ) : ( a , b ) = srbt ( peer , pkts , * args , ** kargs ) if ( len ( a ) > 0 ) : return a [ 0 ] [ 1 ]
send and receive 1 packet using a bluetooth socket .