When we bought the Ford F150 it came with a Tow Package but not a Trailer Break Controller. So, I bought a controller(pictured below under the Trailer Backup knob) off eBay and an OBD2 Adapter(also pictured below) which allows me to connect my computer to the truck's computer.
After installing the Brake Controller I had to activate it using the FORScan program
on my computer. There are other changes I can make to the truck using FORScan.
Above is the Breakaway Switch that was not previously installed on the trailer.
In the event the camper somehow becomes loose from the truck, the cable will pull a
pin out and the trailer brakes will engage. I mounted it and tested it and it works.