[CA Integration] Updated C sample apps to accept connectivity type param