Added example for cpp and arduino