code: 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
docs: send and receive using a bluetooth socket