Skip to content

FunctionListener

Bases: object

FunctionListener class allows receiving notifications when a function is executed.

This abstract class provides a callback mechanism for monitoring function execution events.

functionExecuted(*args)

Overload 1:

Notify function execution.

This callback method is invoked each time a function is executed. Must be overridden.

Parameters:

Name Type Description Default
subDeviceId SubDeviceId

The sub-device ID

required
functionType int

The type of the executed function | Overload 2: Notify function execution with the returned value data. This callback method is invoked when a function is executed and returns a value (typically for GET operations). Override this method to receive the value directly without needing a separate getValue() call. The default implementation delegates to the 2-argument version for backward compatibility.

required
valueData list[int]

The raw value data bytes from the InscoperBox response

required
valueType int

The type tag of the value (from AttrParams2)

required