Advertisement packet and scan response packet

How the advertisement packet, scan response request and scan response packet works with a Blue Maestro bluetooth sensor and beacon