IncomingMessage

class c104.IncomingMessage

This class represents incoming messages and provides access to structured properties interpreted from incoming messages

first(self: c104.IncomingMessage) None

reset message information element pointer to first position

Return type:

None

next(self: c104.IncomingMessage) bool

move message information element pointer to next position, starting by first one

Returns:

True, if another information element exists, otherwise False

Return type:

bool

property common_address

common address (1-65534) (read-only)

Type:

int

property cot

cause of transmission (read-only)

Type:

c104.Cot

property info

value (read-only)

Type:

c104.Information

property io_address

information object address (0-16777215) (read-only)

Type:

int

property is_negative

test if negative flag is set (read-only)

Type:

bool

property is_select_command

test if message is a point command and has select flag set (read-only)

Type:

bool

property is_sequence

test if sequence flag is set (read-only)

Type:

bool

property is_test

test if test flag is set (read-only)

Type:

bool

property number_of_object

represents the number of information objects (read-only) (deprecated, use number_of_objects instead)

Type:

int

property number_of_objects

represents the number of information objects contained in this message (read-only)

Type:

int

property originator_address

originator address (0-255) (read-only)

Type:

int

property raw

raw ASDU message bytes (read-only)

Type:

bytes

property raw_explain

ASDU message bytes explained (read-only)

Type:

str

property type

IEC60870 message type identifier (read-only)

Type:

c104.Type

Deprecated since version 2.1.0: number_of_object was renamed to number_of_objects. The old property name will be removed in c104 3.0.0.