earset sample code