Code adjusted to control relay, ip address for beagle changed.