Sample code illustrating how to make an iPad function as an iBeacon that can be switched on/off.