Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@meshtastic/meshtasticjs

Package Overview
Dependencies
Maintainers
1
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meshtastic/meshtasticjs - npm Package Compare versions

Comparing version 0.6.58 to 0.6.59

105

dist/generated/channel.d.ts

@@ -29,49 +29,2 @@ import { MessageType } from "@protobuf-ts/runtime";

*
* If zero then, use default max legal continuous power (ie. something that won't
* burn out the radio hardware)
* In most cases you should use zero here.
* Units are in dBm.
*
* @generated from protobuf field: int32 tx_power = 1;
*/
txPower: number;
/**
*
* Note: This is the 'old' mechanism for specifying channel parameters.
* Either modem_config or bandwidth/spreading/coding will be specified - NOT BOTH.
* As a heuristic: If bandwidth is specified, do not use modem_config.
* Because protobufs take ZERO space when the value is zero this works out nicely.
* This value is replaced by bandwidth/spread_factor/coding_rate.
* If you'd like to experiment with other options add them to MeshRadio.cpp in the device code.
*
* @generated from protobuf field: ChannelSettings.ModemConfig modem_config = 3;
*/
modemConfig: ChannelSettings_ModemConfig;
/**
*
* Bandwidth in MHz
* Certain bandwidth numbers are 'special' and will be converted to the
* appropriate floating point value: 31 -> 31.25MHz
*
* @generated from protobuf field: uint32 bandwidth = 6;
*/
bandwidth: number;
/**
*
* A number from 7 to 12.
* Indicates number of chirps per symbol as 1<<spread_factor.
*
* @generated from protobuf field: uint32 spread_factor = 7;
*/
spreadFactor: number;
/**
*
* The denominator of the coding rate.
* ie for 4/8, the value is 8. 5/8 the value is 5.
*
* @generated from protobuf field: uint32 coding_rate = 8;
*/
codingRate: number;
/**
*
* NOTE: this field is _independent_ and unrelated to the concepts in channel.proto.

@@ -163,60 +116,2 @@ * this is controlling the actual hardware frequency the radio is transmitting on.

*
* Standard predefined channel settings
* Note: these mappings must match ModemConfigChoice in the device code.
*
* @generated from protobuf enum ChannelSettings.ModemConfig
*/
export declare enum ChannelSettings_ModemConfig {
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: VLongSlow = 0;
*/
VLongSlow = 0,
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: LongSlow = 1;
*/
LongSlow = 1,
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: LongFast = 2;
*/
LongFast = 2,
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: MidSlow = 3;
*/
MidSlow = 3,
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: MidFast = 4;
*/
MidFast = 4,
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: ShortSlow = 5;
*/
ShortSlow = 5,
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: ShortFast = 6;
*/
ShortFast = 6
}
/**
*
* A pair of a channel number, mode and the (sharable) settings for that channel

@@ -223,0 +118,0 @@ *

@@ -7,61 +7,2 @@ // @generated by protobuf-ts 2.5.0 with parameter long_type_string

*
* Standard predefined channel settings
* Note: these mappings must match ModemConfigChoice in the device code.
*
* @generated from protobuf enum ChannelSettings.ModemConfig
*/
export var ChannelSettings_ModemConfig;
(function (ChannelSettings_ModemConfig) {
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: VLongSlow = 0;
*/
ChannelSettings_ModemConfig[ChannelSettings_ModemConfig["VLongSlow"] = 0] = "VLongSlow";
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: LongSlow = 1;
*/
ChannelSettings_ModemConfig[ChannelSettings_ModemConfig["LongSlow"] = 1] = "LongSlow";
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: LongFast = 2;
*/
ChannelSettings_ModemConfig[ChannelSettings_ModemConfig["LongFast"] = 2] = "LongFast";
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: MidSlow = 3;
*/
ChannelSettings_ModemConfig[ChannelSettings_ModemConfig["MidSlow"] = 3] = "MidSlow";
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: MidFast = 4;
*/
ChannelSettings_ModemConfig[ChannelSettings_ModemConfig["MidFast"] = 4] = "MidFast";
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: ShortSlow = 5;
*/
ChannelSettings_ModemConfig[ChannelSettings_ModemConfig["ShortSlow"] = 5] = "ShortSlow";
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: ShortFast = 6;
*/
ChannelSettings_ModemConfig[ChannelSettings_ModemConfig["ShortFast"] = 6] = "ShortFast";
})(ChannelSettings_ModemConfig || (ChannelSettings_ModemConfig = {}));
/**
*
* How this channel is being used (or not).

@@ -108,7 +49,2 @@ * Note: this field is an enum to give us options for the future.

super("ChannelSettings", [
{ no: 1, name: "tx_power", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
{ no: 3, name: "modem_config", kind: "enum", T: () => ["ChannelSettings.ModemConfig", ChannelSettings_ModemConfig] },
{ no: 6, name: "bandwidth", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
{ no: 7, name: "spread_factor", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
{ no: 8, name: "coding_rate", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
{ no: 9, name: "channel_num", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },

@@ -115,0 +51,0 @@ { no: 4, name: "psk", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },

105

dist/generated/config.d.ts

@@ -147,5 +147,110 @@ import { MessageType } from "@protobuf-ts/runtime";

export interface Config_LoRaConfig {
/**
*
* If zero then, use default max legal continuous power (ie. something that won't
* burn out the radio hardware)
* In most cases you should use zero here.
* Units are in dBm.
*
* @generated from protobuf field: int32 tx_power = 1;
*/
txPower: number;
/**
*
* Note: This is the 'old' mechanism for specifying channel parameters.
* Either modem_config or bandwidth/spreading/coding will be specified - NOT BOTH.
* As a heuristic: If bandwidth is specified, do not use modem_config.
* Because protobufs take ZERO space when the value is zero this works out nicely.
* This value is replaced by bandwidth/spread_factor/coding_rate.
* If you'd like to experiment with other options add them to MeshRadio.cpp in the device code.
*
* @generated from protobuf field: Config.LoRaConfig.ModemConfig modem_config = 3;
*/
modemConfig: Config_LoRaConfig_ModemConfig;
/**
*
* Bandwidth in MHz
* Certain bandwidth numbers are 'special' and will be converted to the
* appropriate floating point value: 31 -> 31.25MHz
*
* @generated from protobuf field: uint32 bandwidth = 6;
*/
bandwidth: number;
/**
*
* A number from 7 to 12.
* Indicates number of chirps per symbol as 1<<spread_factor.
*
* @generated from protobuf field: uint32 spread_factor = 7;
*/
spreadFactor: number;
/**
*
* The denominator of the coding rate.
* ie for 4/8, the value is 8. 5/8 the value is 5.
*
* @generated from protobuf field: uint32 coding_rate = 8;
*/
codingRate: number;
}
/**
*
* Standard predefined channel settings
* Note: these mappings must match ModemConfigChoice in the device code.
*
* @generated from protobuf enum Config.LoRaConfig.ModemConfig
*/
export declare enum Config_LoRaConfig_ModemConfig {
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: VLongSlow = 0;
*/
VLongSlow = 0,
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: LongSlow = 1;
*/
LongSlow = 1,
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: LongFast = 2;
*/
LongFast = 2,
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: MidSlow = 3;
*/
MidSlow = 3,
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: MidFast = 4;
*/
MidFast = 4,
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: ShortSlow = 5;
*/
ShortSlow = 5,
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: ShortFast = 6;
*/
ShortFast = 6
}
/**
*
* TODO: REPLACE

@@ -152,0 +257,0 @@ *

67

dist/generated/config.js

@@ -6,2 +6,61 @@ // @generated by protobuf-ts 2.5.0 with parameter long_type_string

import { TelemetrySensorType } from "./telemetry";
/**
*
* Standard predefined channel settings
* Note: these mappings must match ModemConfigChoice in the device code.
*
* @generated from protobuf enum Config.LoRaConfig.ModemConfig
*/
export var Config_LoRaConfig_ModemConfig;
(function (Config_LoRaConfig_ModemConfig) {
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: VLongSlow = 0;
*/
Config_LoRaConfig_ModemConfig[Config_LoRaConfig_ModemConfig["VLongSlow"] = 0] = "VLongSlow";
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: LongSlow = 1;
*/
Config_LoRaConfig_ModemConfig[Config_LoRaConfig_ModemConfig["LongSlow"] = 1] = "LongSlow";
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: LongFast = 2;
*/
Config_LoRaConfig_ModemConfig[Config_LoRaConfig_ModemConfig["LongFast"] = 2] = "LongFast";
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: MidSlow = 3;
*/
Config_LoRaConfig_ModemConfig[Config_LoRaConfig_ModemConfig["MidSlow"] = 3] = "MidSlow";
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: MidFast = 4;
*/
Config_LoRaConfig_ModemConfig[Config_LoRaConfig_ModemConfig["MidFast"] = 4] = "MidFast";
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: ShortSlow = 5;
*/
Config_LoRaConfig_ModemConfig[Config_LoRaConfig_ModemConfig["ShortSlow"] = 5] = "ShortSlow";
/**
*
* TODO: REPLACE
*
* @generated from protobuf enum value: ShortFast = 6;
*/
Config_LoRaConfig_ModemConfig[Config_LoRaConfig_ModemConfig["ShortFast"] = 6] = "ShortFast";
})(Config_LoRaConfig_ModemConfig || (Config_LoRaConfig_ModemConfig = {}));
// @generated message type with reflection information, may provide speed optimized methods

@@ -82,3 +141,9 @@ class Config$Type extends MessageType {

constructor() {
super("Config.LoRaConfig", []);
super("Config.LoRaConfig", [
{ no: 1, name: "tx_power", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
{ no: 3, name: "modem_config", kind: "enum", T: () => ["Config.LoRaConfig.ModemConfig", Config_LoRaConfig_ModemConfig] },
{ no: 6, name: "bandwidth", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
{ no: 7, name: "spread_factor", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
{ no: 8, name: "coding_rate", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
]);
}

@@ -85,0 +150,0 @@ }

export * from "./admin.js";
export * from "./apponly.js";
export * from "./cannedmessages.js";
export * from "./config.js";
export * from "./channel.js";
export * from "./deviceonly.js";
export * from "./mesh.js";
export * from "./module_config.js";
export * from "./mqtt.js";

@@ -8,0 +10,0 @@ export * from "./portnums.js";

export * from "./admin.js";
export * from "./apponly.js";
export * from "./cannedmessages.js";
export * from "./config.js";
export * from "./channel.js";
export * from "./deviceonly.js";
export * from "./mesh.js";
export * from "./module_config.js";
export * from "./mqtt.js";

@@ -8,0 +10,0 @@ export * from "./portnums.js";

{
"name": "@meshtastic/meshtasticjs",
"version": "0.6.58",
"version": "0.6.59",
"description": "Browser library for interfacing with meshtastic devices",

@@ -5,0 +5,0 @@ "license": "GPL-3.0-only",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc