Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device object settings not being used in requests #7

Open
Bepacom-Raalte opened this issue Aug 2, 2023 · 0 comments
Open

Device object settings not being used in requests #7

Bepacom-Raalte opened this issue Aug 2, 2023 · 0 comments

Comments

@Bepacom-Raalte
Copy link

I set up my BACpypes3 application the same way I set up my BACpypes application, using the device object.

this_device = DeviceObject(
    objectIdentifier=ObjectIdentifier(f"device,{config.get('BACpypes', 'objectIdentifier')}"),
    objectName=config.get('BACpypes', 'objectName'),
    description="BACnet Add-on for Home Assistant",
    vendorIdentifier=int(config.get('BACpypes', 'vendorIdentifier')),
    maxApduLengthAccepted=1476,
    segmentationSupported=Segmentation.segmentedBoth,
    maxSegmentsAccepted=64,
)

While using this setup, the requests my application sends are using the default settings and not the parameters used in the Device object.
The workaround solution currently is adjusting the ApplicationServiceAccessPoint variables by overwriting them like the following

app.asap.maxApduLengthAccepted = 1476

app.asap.segmentationSupported = Segmentation.segmentedBoth

app.asap.maxSegmentsAccepted = 64

In short, the Device object parameters are not being used by the app.
The application I use BACpypes3 in can be found here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant