cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

CSDK - How to force a value push that does not violate the threshold?

mneumann
16-Pearl

CSDK - How to force a value push that does not violate the threshold?

Hi everyone,

 

I'm using the CSDK with DEADBAND thresholds to reduce the number of property updates.

This is for saving mobile bandwidth while still having a reasonable resolution when values change.

 

However, for the values there are certain fixed values which should always be pushed. At the moment they are not, as they fall within the active deadband. For example:

 

Property: litres of water in a tank

Threshold value: 20

 

This will push ONLY if the value changes by more than 20.

If the tank is at 30 litres and the new measurement records a change of -23 litres, the updated value will be 7.

With this, the tank level can not be determined to be empty or not.

 

So the idea is now to force a push, once the value hits a certain fixed number, in this case 0 litres (or for filling up, the max capacity), even if that change does not violate the threshold.

 

Is there a way to implement this without dropping or changing the threshold?

 

Thanks and Regards,

Michael

1 ACCEPTED SOLUTION

Accepted Solutions
slangley
23-Emerald II
(To:mneumann)

Hi @mneumann.

 

Have you considered using events as an alternative?  You could implement custom logic to check the property value on the edge side for firing an event based on the value. The event would just be a trigger to possibly fire off an email from the ThingWorx side.

 

Regards.

 

--Sharon

View solution in original post

2 REPLIES 2
slangley
23-Emerald II
(To:mneumann)

Hi @mneumann.

 

Have you considered using events as an alternative?  You could implement custom logic to check the property value on the edge side for firing an event based on the value. The event would just be a trigger to possibly fire off an email from the ThingWorx side.

 

Regards.

 

--Sharon

Hi @slangley 

no - we have not considered that, but this could be a good alternative.

I will check within our team. If there's nothing built-in then events could be the way to go.

 

We could use the event data as input for a service to set the property on server side.

 

Thanks for the idea!

Michael

Top Tags