Hi,
I’m working with deepstream-test5-app with kafka. In the json message sent to kafka, there is a field named “sensor_info” and has some sensor information in it like id, location. But I can’t find where can I modify these information in the code? More specifically, I don’t know how to let deepstream-test5 get the real sensor information.
Thanks very much for any suggestion.
Hi,
sources/libs/nvmsgconv/nvmsgconv.cpp
nvds_msg2p_generate->generate_schema_message->generate_sensor_object
and in this function, sensorObj is returned result of nvds_msg2p_parse_sensor which is called by nvds_msg2p_parse_key_value and which is called by nvds_msg2p_ctx_create
you may change it according to your needs.
Specifically, you can update sensor info in dstest5_msgconv_sample_config file