Write
Writes a value to a writable point. Pass None as the
value to clear a priority hold and release control back to the next
level.
write(point_id, value, level=None)| Argument | Default | Description |
|---|---|---|
point_id |
— | Point ID string (required) |
value |
— | Numeric value, or None to clear the priority hold |
level |
16 |
BACnet priority level (1–16) |
Returns
WriteResult with the following attributes:
| Attribute | Type | Description |
|---|---|---|
point_id |
str |
Point ID that was written |
level |
int |
Priority level used |
source_id |
str |
Source ID of the point |
value |
str |
Value that was written |
status |
str |
Result status |
Example
# Write a value
result = client.write(point_id="s.2.4", value=72.5)
print(result.status)
# Write at a specific priority level
result = client.write(point_id="s.2.4", value=70.0, level=8)
print(result.level) # 8
# Clear the priority hold
result = client.write(point_id="s.2.4", value=None)
print(result.status)