Skip to content

Custom Python interfaces seem to have connect() method called twice #1362

Closed
@heyschultzy

Description

@heyschultzy

I'm developing my own custom Python ActiveMQ interface based off of Interface class (doesn't seem to be one in your examples, other than using the MQTT interface to AMQ), but I noticed it appears to be calling my connect() method twice within about 3ms. That was with version 5.15.2, so I downloaded the latest 5.16.2 and created a highly useful interface called nada_interface.py that just has some stubbed-out methods for connecting, reading, etc. I noticed it seems to do the same thing:

image

My plugin.txt looks like this for my target:

VARIABLE mytarget_target_name MYTARGET

TARGET MYTARGET <%= mytarget_target_name %>
INTERFACE <%= mytarget_target_name %>_INT nada_interface.py host.docker.internal 61613 61613 10.0 None
  MAP_TARGET <%= mytarget_target_name %>

You should be able to reproduce by stubbing out your own version of a Python interface class, or I can upload mine if you need it.

This seems to be related to this issue, but doesn't appear to be fixed for my use case:

Fix python tpcip client connection, #1034

I'm running this on Ubuntu 22.04 in Chrome.

Thanks! ~Jeff

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions