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 Client port Change
#2
Scanning will not work with different port but you can use different port for reading and writing.  Use YABE for scanning.
Example for reading. 
Code:
require('bacnet')
bacnet.port = '0xBAC2'
-- read from 192.168.0.21, device id 21
bacnet.deviceip = '192.168.0.21'
val1 = bacnet.readvalue(21, 'binary value', 2049)
val2 = bacnet.readvalue(21, 'binary value', 2050)
val3 = bacnet.readvalue(21, 'binary value', 2051)
log(val1, val2, val3)
------------------------------
Ctrl+F5
Reply


Messages In This Thread
Bacnet Client port Change - by savaskorkmaz - 07.07.2025, 09:41
RE: Bacnet Client port Change - by Daniel - 07.07.2025, 10:10
RE: Bacnet Client port Change - by Daniel - 07.07.2025, 11:30
RE: Bacnet Client port Change - by admin - 08.07.2025, 07:55

Forum Jump: