This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

BACnet write speed
#2
I suppose this might be an issue with parallel execution of write request.

You can lock parallel access via semaphores library so all writes are executed one by one:
Code:
require('sem')
require('bacnet')

value = event.getvalue()

-- wait for lock for up to 10 seconds
sem.runlocked('bacnetlock', 10, function()
  bacnet.write(127001, 'analog value', event.dstraw, value)  
end)
Reply


Messages In This Thread
BACnet write speed - by Evens - 09.08.2018, 08:51
RE: BACnet write speed - by admin - 09.08.2018, 09:00
RE: BACnet write speed - by Evens - 09.08.2018, 10:25

Forum Jump: