samples: Add example when AC connects/disconnects