Issue with LocalDeviceObject in sample code?
See original GitHub issueHi there,
In most of the sample code, local devices are initialized like so:
this_device = LocalDeviceObject(
...
objectIdentifier=int(args.ini.objectidentifier),
...
)
I tried to “find” these devices using a BACnet explorer, and they were all showing up as Analog Input Objects. In order for the explorer to correctly identify these objects as devices, I had to change the objectIdentifier line to
objectIdentifier=('device', int(args.ini.objectidentifier)),
as it appears when initialising other objects. Not sure if this is a mistake or intentional. Thanks for your help.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to use the bacpypes.app.BIPSimpleApplication function ...
Use Snyk Code to scan source code in minutes - no build needed - and fix issues ... from bacpypes.local.device import LocalDeviceObject #...
Read more >JoelBender/bacpypes - Gitter
Hi @JoelBender, I use samples/ReadWriteProperty.py and write a binaryValue object with priority 8, how can I release it in the priority array?
Read more >Sample 1 - Simple Application - BACpypes - Read the Docs
This sample application is the simplest BACpypes application that is a complete stack. Using an INI file it will configure a LocalDeviceObject ,...
Read more >trouble making a command starts automatically when the apps ...
I'm trying to make the "WhoIs-IAm" sample application to do an automatic ... GlobalBroadcast from bacpypes.app import LocalDeviceObject, ...
Read more >bacpypes-developers Mailing List for BACpypes - SourceForge
Re: [BACpypes-developers] Problem with readProperty and DeviceDiscovery ... I'll find a copy and put it back in > the sample code directory.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ahhh! I see it. The
objectList
property should contain object identifiers and as shown in the sample above it just has12
and not('device', 12)
like it should. Interesting bug, thank you for finding it!Great, thank you!