Interface IDeviceGnpChannel

A GNP channel for a device. If the preferred connection of the device changes, then the GNP channel will switch to the new preferred connection.

interface IDeviceGnpChannel {
    defaultAddress: Observable<Address>;
    events: Observable<Packet>;
    read(request: Subcommand | IGnpRequest): Promise<PacketData>;
    sendEvent(request: Subcommand | IGnpRequest): void;
    write(request: Subcommand | IGnpRequest): Promise<void>;
}

Hierarchy (View Summary)

  • IGnp
    • IDeviceGnpChannel

Methods

Properties

defaultAddress: Observable<Address>
events: Observable<Packet>