I am currently exploring a project where I want to send data (most likely video) from one raspberry pi to another raspberry pi over two (series 1) xbee radios with some python scripts.
currently I have been successful in sending text from one to the other(code below). so my next step is to send streaming video from one to the other. I know there are other ways to do this, I have already done it via VNC over two WiFi dongles. the reason i want to use the xbees is to achieve a good amount of range. I am not even sure if this is practical or possible, any help would be great.
note(I started looking at sending packets over the radios but was unsure how to do that in python.)
import serial
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
port = serial.Serial('/dev/ttyUSB0', 9600)
print port
while True:
x = raw_input()
ser.write(x)
print("you typed ",x)
this is the code for only one of the raspberry pi's (the sender) I hope this all makes sense, if it doesn't I apologize.