You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following test works fine on windows, but not on Linux. Looks like when there are multiple BAC0 instances (using same UDP port) on Linux environment, it is not working.
importBAC0importpytestfromBAC0.core.devices.local.factoryimportanalog_inputfrombacpypes3.basetypesimportEngineeringUnits@pytest.mark.asyncioasyncdeftest_read_using_same_port():
''' Test BAC0 API to read single property from BACnet objects '''# create BACnet device as serverasyncwithBAC0.start(ip="127.0.0.1/24") asserver:
# add objectsai_obj=analog_input(
name="ZN-T",
properties={"units": "degreesCelsius"},
description="Zone Temperature",
presentValue=21,
)
ai_obj.add_objects_to_application(server)
# create BACnet clientasyncwithBAC0.start(ip="127.0.0.2/24") asclient:
present_value=awaitclient.read('127.0.0.1 analogInput 0 presentValue')
assertpresent_value==21unit=awaitclient.read('127.0.0.1 analogInput 0 units')
assertunit==EngineeringUnits.degreesCelsius
The text was updated successfully, but these errors were encountered:
The following test works fine on windows, but not on Linux. Looks like when there are multiple BAC0 instances (using same UDP port) on Linux environment, it is not working.
The text was updated successfully, but these errors were encountered: