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.

2 Virtual port and Bacnet Communication
#1
Hi,

In the forum there is a example about how we can create a second virtual ethernet port.

https://forum.logicmachine.net/showthrea...2#pid16682

I need an example about how can i use second ethernet port ( eth0:2 ) for bacnet communication in my bacnet script shown below.

require('bacnet')

bacnet.deviceip = '192.168.0.21'
val1 = bacnet.readvalue(21, 'binary value', 2049)

Regards
Reply
#2
It's not a virtual port but an option to assign multiple IP addresses to the same interface. For script to work one of the IP addresses on the interface must belong to the same subnet (192.168.0.0/24).
Reply


Forum Jump: