I have been trying to use Guibots xbee example of controlling 2 led's with 2 pots. I want to control a servo with a pot through xbee. using the servo.h sketch the below is what i have, but cant seem to get it to turn the servo. if i hook it up directly with no xbee involved, it works fine. so my problem is taking the example servo.h scketch and being able to break it into two sketches. send and a receive. i appreciate any help.
looking at the below can you tell what i am doing wrong?