Become a leader in the IoT community!
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Hey guys, am creating a building automation system using a Raspberry Pi 4 with Embedded Linux. The system should read data from a BACnet temperature sensor. I have checked the BACnet network configuration and IP address, verified the BACnet device status and settings, ensured the BACnet library is correctly installed and configured.
But am getting the error
`Network unreachable`
from bacpypes.core import run
from bacpypes.app import BIPSimpleApplication
from bacpypes.object import AnalogInputObject
from bacpypes.service.device import LocalDeviceObject
this_device = LocalDeviceObject(
objectIdentifier=('device', 1234),
objectName='BACnetDevice',
vendorIdentifier=15
)
this_application = BIPSimpleApplication(this_device, '192.168.1.10/24')
temperature_sensor = AnalogInputObject(
objectIdentifier=('analogInput', 1),
objectName='TemperatureSensor',
presentValue=0.0,
)
this_application.add_object(temperature_sensor)
def read_temperature():
temperature = temperature_sensor.presentValue
print(f"Temperature: {temperature}")
run()
@Middleware & OS
Is there firewall installed make sure udp 47808 is open
Yes my firewall is still up should I deactivate it
Stop firewalld
Systemctl stop firewalld
Or add 47808 allowed as udp
Glad to see people on building automation here π€
In bound to raspberry pi could be the culprit
Lemme do this now and recheck my configuration, I would give a feedback π
CONTRIBUTE TO THIS THREAD