iBeacon code and reboot trigger to support USB reflashing