poll#
- Session.poll(recording_time: float = 0.1, *, timeout: float = 0.5, flags: PollFlags = PollFlags.DEFAULT) Dict[Node, Dict[str, Any]] [source]#
Polls all subscribed data from the data server.
Poll the value changes in all subscribed nodes since either subscribing or the last poll (assuming no buffer overflow has occurred on the Data Server).
- Parameters:
recording_time (float) – Defines the duration of the poll in seconds. (Note that not only the newly recorded values are polled but all values since either subscribing or the last poll). Needs to be larger than zero. (default = 0.1)
timeout (float) – Adds an additional timeout in seconds on top of recording_time. Only relevant when communicating in a slow network. In this case it may be set to a value larger than the expected round-trip time in the network. (default = 0.5)
flags (PollFlags) – Flags for the polling (see :class PollFlags:)
- Returns:
Polled data in a dictionary. The key is a Node object and the value is a dictionary with the raw data from the device
- Return type:
Dict[Node, Dict[str, Any]]