The brake switch input into the BMW ECU is quite complex. Usually the way around it is to fit the BMW brake switches. These do not fit well in every application.
This device has 2 inputs. +12v from a brake switch and ground.
It has the 2 outputs which connect to the BMW ECU.