Device-to-cloud messaging