Open tjarkst opened 7 hours ago
The write_property method is not sending BACnet packets as expected. While read operations work correctly, write operations fail silently with no packets visible in Wireshark.
import BAC0 # Initialize connection bacnet = BAC0.lite(ip='192.168.0.97', port=port) # Read works read_result = bacnet.read('192.168.0.100 analogValue 459 presentValue') print(f"Read successful: {read_result}") # Write fails silently write_result = bacnet.write('192.168.0.100 analogValue 459 presentValue 100 - 8') print(f"Write attempted: {write_result}") ![image](https://github.com/user-attachments/assets/26cca76a-5016-4a06-b987-7c2cebeae650)
Try
await bacnet._write(args)
And tell me if it is better
Complément : the write method creates a asyncio task. With await _write you force the write to happen now.
It worked indeed
The write_property method is not sending BACnet packets as expected. While read operations work correctly, write operations fail silently with no packets visible in Wireshark.
Reproduction Steps