Programming sugestion new Sensor Property: isDetecting
Submitted
It is not possible to extract wheter a sensor is detecting something right now easily.
void DetectedEntities(List<MyDetectedEntityInfo> entities); might get close, but is a huge waste. I need to create a list, hand it to that function, have it build - and then all I actually do with it is check entities.Count > 0;
I can also get close by having it toggle a lights , then check the status of the light. But that would require 1-2 timers for multicasting or a Polling approach. And would add a light to the whole drawing part.
Why not have the sensor trigger the PB with an argument for each state? :P
But I agree it needs a simple property for that :]
Why not have the sensor trigger the PB with an argument for each state? :P
But I agree it needs a simple property for that :]
Replies have been locked on this page!