question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with LocalDeviceObject in sample code?

See original GitHub issue

Hi 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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JoelBendercommented, Jan 4, 2018

Ahhh! I see it. The objectList property should contain object identifiers and as shown in the sample above it just has 12 and not ('device', 12) like it should. Interesting bug, thank you for finding it!

0reactions
erinbirkwoodcommented, Feb 16, 2018

Great, thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found