Binary values in inject node

Hi There,

I'm just playing around with @cymplecy inhouse mqtt broker and came across the switch at the front which contains binary and hexadecimal values in a number field:

When I use an inject node to generate those values, I get a format error:

but no errors on the edit panel:

I tried using the buffer type for those values but got a JSON parse error:

How is that the number field in the switch node supports a different set of values to the inject node - what am I missing?

The nodes in questoin:

[{"id":"ce8a0e2105861dc1","type":"inject","z":"dc897f402c53697f","name":"","props":[{"p":"fuar","v":"0b00110000","vt":"num"},{"p":"ff","v":"0x82","vt":"num"},{"p":"gg","v":"0xC0","vt":"num"},{"p":"hh","v":"0b10100010","vt":"num"},{"p":"jjj","v":"0b11100000","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":848,"y":1133,"wires":[["943d8187afdbd94d"]]},{"id":"f3500f36eed92063","type":"switch","z":"dc897f402c53697f","name":"Test packet type","property":"payload.0","propertyType":"msg","rules":[{"t":"eq","v":"16","vt":"num"},{"t":"eq","v":"0xC0","vt":"num"},{"t":"gte","v":"0b00110000","vt":"num"},{"t":"eq","v":"0x82","vt":"num"},{"t":"eq","v":"0b10100010","vt":"num"},{"t":"eq","v":"0b11100000","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":7,"x":903,"y":1255,"wires":[[],[],[],[],[],[],[]]},{"id":"943d8187afdbd94d","type":"debug","z":"dc897f402c53697f","name":"debug 437","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1142,"y":1157,"wires":[]}]
1 Like

Please raise an issue if something valid is being flagged as an error

Done.

BTW you are going to support having binary and hexadecimal values in the inject node right? I mean you're not going to add an error in the edit panel?