def scanNetwork():
 devices = []
 for remoteAddress in range(2, 6):
  print ('Trying address ' + str(remoteAddress))
  p = snap.Packet(remoteAddress, snap.localAddress, 0, 1, [CMD_GETMODULETYPE])
  p.send()
  rep = p.getReply()
  print 'dev', remoteAddress
  time.sleep(0.5)
 for d in devices:
  print 'device', d

def scanNetwork ( ) : devices = [ ] for remoteAddress in range ( 2 , 6 ) : print ( 'Trying address ' + str ( remoteAddress ) ) p = snap . Packet ( remoteAddress , snap . localAddress , 0 , 1 , [ CMD_GETMODULETYPE ] ) p . send ( ) rep = p . getReply ( ) print 'dev' , remoteAddress time . sleep ( 0.5 ) for d in devices : print 'device' , d
scan reprap network for devices - this will be used by autoconfig functions when complete .