Code for motioncast on networking with AFMotion