Only scan for relay node max 3 times per transmission attempt (to save battery)

Lower transmission speed to reach longer distances.

Remove RF24 to prepare gittree import.
This commit is contained in:
Henrik Ekblad
2014-04-30 23:39:06 +02:00
parent b27735a94a
commit 9a32a81644
69 changed files with 459 additions and 12029 deletions
@@ -1,25 +0,0 @@
#!/opt/local/bin/python
import sys,serial
def read_until(token):
while 1:
line = ser.readline(None,"\r")
sys.stdout.write(line)
if (line.startswith(token)):
break
return line
ser = serial.Serial(sys.argv[1], 57600, timeout=5, dsrdtr=False, rtscts=False)
read_until("+READY")
ser.write(sys.argv[2])
line = read_until("+OK")
ser.close()
if (line.find("PASS") != -1):
sys.exit(0)
else:
sys.exit(1)