IPWorks IoT 2020 Python Edition

Questions / Feedback?

on_message_out Event

Fires when the class sends a message.

Syntax

class AMQPMessageOutEventParams(object):
  @property
  def session_name() -> str: ...
  @property
  def session_index() -> int: ...
  @property
  def link_name() -> str: ...
  @property
  def link_index() -> int: ...
  @property
  def message_id() -> str: ...

# In class AMQP:
@property
def on_message_out() -> Callable[[AMQPMessageOutEventParams], None]: ...
@on_message_out.setter
def on_message_out(event_hook: Callable[[AMQPMessageOutEventParams], None]) -> None: ...

Remarks

This event fires whenever the class sends a message.

SessionName is the name of the session the message was transmitted on.

SessionIndex is the index of the session in the Session* properties.

LinkName is the name of the link the message was transmitted on.

LinkIndex is the index of the link in the Link* properties.

MessageId is the Id of the message; it may be empty if a message Id was not set.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IoT 2020 Python Edition - Version 20.0 [Build 8265]