Interface IGnpChannel

A communication channel to a device using the GNP protocol and a default address.

interface IGnpChannel {
    defaultAddress: Address;
    description: string;
    events: Observable<Packet>;
    type: ChannelType;
    read(request: Subcommand | IGnpRequest): Promise<PacketData>;
    sendEvent(request: Subcommand | IGnpRequest): void;
    withAddress(address: Address): IGnpChannel;
    write(request: Subcommand | IGnpRequest): Promise<void>;
}

Hierarchy (View Summary)

Methods

Properties

defaultAddress: Address
description: string

A description of the purpose of the communication channel.

events: Observable<Packet>

The type of the communication channel type.