Digital and analog sampling using XBee radios