Skip to content

fncs.py returns empty list for get_events #10

Description

@XinboGeng

When communicating with a cpp player using fncs.py, we are unable to use get_events() to return a list of keys - it returns an empty list. The get_value(key) method is also empty. We are trying to communicate with simB.cpp. The simA.cpp <-> simB.cpp works as expected using a broker. simA.py (below) <-> simB.cpp does not work as expected.

import fncs
fncs.initialize("""name = simA
time_delta = 1s
broker = tcp://localhost:5570
values
    key
         topic = simB/object.attribute
     """)

fncs.initialize()

for current_time in range(1,100):

    fncs.publish("object.attribute", "value_from_PythonA")

    print(fncs.get_events()) # empty list

    # value = fncs.get_value(key)

 fncs.finalize()

@jeffdaily is this possibly related to #3 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions