规则里可以使用内置函数吗?

规则
SELECT
payload.cmdId as cmdId, hexstr2bin(payload.payload.c1) as c1_bin
FROM
“/HYXCloud”
where cmdId = ‘3111’
消息
{ “cmdId”: 3111, “sn”: “AAA0001”, “ts”: “1646139818952”, “lat”: 0, “lng”: 0, “payload”: { “time”: 1646220897, “c1”: “02”, “c2”: “0000”} }

可以的。
不过你得把所有的中文引号换成英文的。
推荐用规则的调试模式来调: