Skip to content

Indication of external ReadProperty, ReadPropertyMultiple, WriteProperty etc. Request #416

Answered by JoelBender
MitchCayCRC asked this question in Q&A
Discussion options

You must be logged in to vote

There are a couple ways to solve this. First, by recognizing that part of the request/indication/response/confirmation pattern is that as a server, your application's indication() is going to be called, so you can see it like this:

@bacpypes_debugging
class MyApplication(BIPSimpleApplication):

    def indication(self, apdu):
        if _debug: MyApplication._debug("indication %r", apdu)

        if isinstance(apdu, ReadPropertyMultipleRequest):
            if _debug: MyApplication._debug("    - got one!")

        # continue along
        BIPSimpleApplication.indication(self, apdu)

The basic operation of the indication() function is to look for a peer function for the APDU type (patterne…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MitchCayCRC
Comment options

Answer selected by MitchCayCRC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants