I am having an issue with my Iot Hub to Digital Twins ingest function app. I am trying to update properties across multiple unique models with either a single or multiple ingestion functions but I can't figure out how to filter out the unnecessary telemetry. For example, I am wanting to do something like updating dischargeTemp and dischargePressure on a twin with model 1 while updating inletTemp and inletPressure on a twin with model 2. The function sees null values on one or another set of telemetry and throws an error. All of the example functions I have seen only assume a single type of device streaming telemetry and updating a single model. How do I determine what type of model is intended to be updated so that I can target only that model?
I tried writing a function that would process every possible type of telemetry but it throws errors due to null property values.