Starting to rework Apple's BLE sample code into what the robots need.