for that purpose there is the MQTT Service currently in private preview. If you are interested in a preview you should approach your Sales/Partner contact.
You can send any topic & payload to that service and use a microservice to do the processing to Cumulocity or use the Dynamic Mapper to do that in a zero-code approach.