Replies: 1 comment 5 replies
-
Hi @loki429 Maybe you can print out CanId and see its values. Check this doc about how to debug https://ekuiper.org/docs/en/latest/getting_started/debug_rules.html |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All
I'd like to create a rule that filters on a small set of CAN bus IDs, but without success.
First off I got data type errors:
eg " Where error: between operator cannot compare uint32(1633) and int(512)"
This is the query:
SELECT *, meta(id) AS canId
FROM can0
WHERE canId between 512 AND 519
I've tried using CAST but get no results coming through:
SELECT *, meta(id) AS canId
FROM can0
WHERE CAST(meta(id),INT) BETWEEN 1632 AND 1639;
The rule runs and I see records on source_can0_0 in and out, but op_2_filter shows a matching number in but zero out.
The source data definitely contains data with those CAN ids and I've even tried the rule using values 1 to 99999.
Can anyone see my error and point me in the right direction please?
Thanks,
Jon
Beta Was this translation helpful? Give feedback.
All reactions