Cannot stream from route when using "Find" in NetStandard API
Hey,
I've implemented the new 0.3 NetStandard API with a full backend to run on windows/android/iOS.
Things are working fine on Windows, but when running on Android I cannot get the "Find" instruction to deliver me any values.
The following works only on Windows
_TriggerRoute = await adc.AddRouteAsync(source =>
source.Find(Threshold.Binary, threshold).Stream(data => SendTrigger(data.Value<byte>(), data.Timestamp))
);
The following works on both Windows & Android
_StreamingRoute = await adc.AddRouteAsync(source =>
source.LowPass(4).Limit(streamPeriod).Stream(data => SendMoisture(data.Value<byte>(), data.Timestamp))
);
How can this be? The LowPass + Limit + Stream gives me readings, as expected. But the Find + Stream never triggers (on android only).
Otherwise, the two implementations are identical.
Is there anyway to debug the device itself to be sure that the route is setup correctly?
This discussion has been closed.
Comments
Task
object. Where are you seeing that version of the code?