nRF Cloud - sending custom data to custom topic

Hi 

I'm currently trying to modify the nRF Cloud multi-service sample (SDK2.6) to send custom data to custom topics. But I can't find a way to do this. 

I want to send a JSON package like this to the custom topic "tdg":

{
"ts":"1726226122",
"loc":"1000",
"id":"123456789",
"at":"2055",
"ap":"999",
"wt":"1255",
"wp":"2121",
"gt":"1255",
"gp":"2222"
}


Other similar messages should be sent to other topics ("pH", "O2"). Is this possible? And do you have some sample code? 

Related