meshcore.js
ReferenceClasses

GuardedCommandError

Defined in: packages/client/src/errors.ts:134

Thrown by client.radio.request() for the three Companion commands that transmit on the mesh (SendTxtMsg, SendChannelTxtMsg, SendSelfAdvert): they only go through SendQueue and sendSelfAdvert(), which carry the anti-spam limits.

Extends

Constructors

Constructor

new GuardedCommandError(commandCode): GuardedCommandError;

Defined in: packages/client/src/errors.ts:138

Parameters

commandCode

number

The refused Companion command code

Returns

GuardedCommandError

Overrides

MeshcoreError.constructor

Properties

code

readonly code: string;

Defined in: packages/transports/src/errors.ts:3

Inherited from

MeshcoreError.code


commandCode

readonly commandCode: number;

Defined in: packages/client/src/errors.ts:135

On this page