Skip to main content

latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
17%
Published
4 months ago (2.3.12)
class Admin.AdminMessage
extends Message<AdminMessage>

This message is handled by the Admin module and is responsible for all settings/channel read/write operations. This message is used to do settings operations to both remote AND local nodes. (Prior to 1.2 these operations were done via special ToRadio operations)

Constructors

new
AdminMessage(data?: PartialMessage<AdminMessage>)

Properties

payloadVariant:
{ value: number; case: "getChannelRequest"; }
| { value: Channel; case: "getChannelResponse"; }
| { value: boolean; case: "getOwnerRequest"; }
| { value: User; case: "getOwnerResponse"; }
| { value: AdminMessage_ConfigType; case: "getConfigRequest"; }
| { value: Config; case: "getConfigResponse"; }
| { value: AdminMessage_ModuleConfigType; case: "getModuleConfigRequest"; }
| { value: ModuleConfig; case: "getModuleConfigResponse"; }
| { value: boolean; case: "getCannedMessageModuleMessagesRequest"; }
| { value: string; case: "getCannedMessageModuleMessagesResponse"; }
| { value: boolean; case: "getDeviceMetadataRequest"; }
| { value: DeviceMetadata; case: "getDeviceMetadataResponse"; }
| { value: boolean; case: "getRingtoneRequest"; }
| { value: string; case: "getRingtoneResponse"; }
| { value: boolean; case: "getDeviceConnectionStatusRequest"; }
| { value: DeviceConnectionStatus; case: "getDeviceConnectionStatusResponse"; }
| { value: HamParameters; case: "setHamMode"; }
| { value: boolean; case: "getNodeRemoteHardwarePinsRequest"; }
| { value: NodeRemoteHardwarePinsResponse; case: "getNodeRemoteHardwarePinsResponse"; }
| { value: boolean; case: "enterDfuModeRequest"; }
| { value: string; case: "deleteFileRequest"; }
| { value: User; case: "setOwner"; }
| { value: Channel; case: "setChannel"; }
| { value: Config; case: "setConfig"; }
| { value: ModuleConfig; case: "setModuleConfig"; }
| { value: string; case: "setCannedMessageModuleMessages"; }
| { value: string; case: "setRingtoneMessage"; }
| { value: number; case: "removeByNodenum"; }
| { value: number; case: "setFavoriteNode"; }
| { value: number; case: "removeFavoriteNode"; }
| { value: Position; case: "setFixedPosition"; }
| { value: boolean; case: "removeFixedPosition"; }
| { value: boolean; case: "beginEditSettings"; }
| { value: boolean; case: "commitEditSettings"; }
| { value: number; case: "rebootOtaSeconds"; }
| { value: boolean; case: "exitSimulator"; }
| { value: number; case: "rebootSeconds"; }
| { value: number; case: "shutdownSeconds"; }
| { value: number; case: "factoryReset"; }
| { value: number; case: "nodedbReset"; }
| { case: undefined; value?: undefined; }

TODO: REPLACE

Static Properties

readonly
fields: FieldList
readonly
runtime: proto3
readonly
typeName: string

Static Methods

equals(
a:
AdminMessage
| PlainMessage<AdminMessage>
| undefined
,
b:
AdminMessage
| PlainMessage<AdminMessage>
| undefined
,
): boolean
fromBinary(
bytes: Uint8Array,
options?: Partial<BinaryReadOptions>,
): AdminMessage
fromJson(
jsonValue: JsonValue,
options?: Partial<JsonReadOptions>,
): AdminMessage
fromJsonString(
jsonString: string,
options?: Partial<JsonReadOptions>,
): AdminMessage

Add Package

deno add @meshtastic/protobufs

Import symbol

import { Admin } from "@meshtastic/protobufs";
const { AdminMessage } = Admin;

---- OR ----

Import directly with a jsr specifier

import { Admin } from "jsr:@meshtastic/protobufs";
const { AdminMessage } = Admin;

Add Package

npx jsr add @meshtastic/protobufs

Import symbol

import { Admin } from "@meshtastic/protobufs";
const { AdminMessage } = Admin;

Add Package

yarn dlx jsr add @meshtastic/protobufs

Import symbol

import { Admin } from "@meshtastic/protobufs";
const { AdminMessage } = Admin;

Add Package

pnpm dlx jsr add @meshtastic/protobufs

Import symbol

import { Admin } from "@meshtastic/protobufs";
const { AdminMessage } = Admin;

Add Package

bunx jsr add @meshtastic/protobufs

Import symbol

import { Admin } from "@meshtastic/protobufs";
const { AdminMessage } = Admin;