BiancoRoyal / node-red-contrib-bacnet

maintained by PLUS for Node-RED - https://plus4nodered.com
https://www.npmjs.com/package/node-red-contrib-bacnet
MIT License
24 stars 16 forks source link

Can't reset (or send NULL) to an analog_value #36

Open beodoble opened 6 months ago

beodoble commented 6 months ago

Which node-red-contrib-bacnet version are you using?

0.2.7 running in Raspberry pi 2

What happened?

Frankly speaking I'm not sure if this is a bug or not. I want to reset (write NULL) in analog_value property (85: present_value) in priority 8 (manual operation). When sending a blank instead of any value for APP_TAG 4 (REAL) I would expect to remove the value in the priority array, but instead appears 0.

How can this be reproduced?

I successfully read and write properties to different analog_values in my bacnet device (PLC). I always modify property 85 (present value) with priority 8 (manual operation). The issue comes when I want to "reset" this value and remove the value in that position of the priority array. From the bacnet documentation, I understand I have to send NULL to that paticular property and priority, which is indeed what I successfully do with YABE (Yet Another Bacnet Explorer); I simply select property 85 and priority 8 and leave the value to write in blank. When I replicate that in nodered the value written is 0, not null or void, which is not equivalent. I have tried sending directly APP-TAG NULL but I receive this error: "Error: getEnumName() can only be passed an integer value, was given "NaN"". I also tried to send literally NULL as value for REAL type but I receive a timeout error. Is this a bug or am I not understading how to use the write function?

Many thanks for the work done!

What did you expect to happen?

No response

Other Information

No response