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.31 to 0.6.32

dist/generated/storeforward.d.ts

2

dist/generated/admin.d.ts

@@ -21,3 +21,3 @@ import { MessageType } from "@protobuf-ts/runtime";

*
* set the radio provisioning for this node
* Set the radio provisioning for this node
*

@@ -24,0 +24,0 @@ * @generated from protobuf field: RadioConfig set_radio = 1;

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.0.7 with parameter long_type_string
// @generated by protobuf-ts 2.1.0 with parameter long_type_string
// @generated from protobuf file "admin.proto" (syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.0.7 with parameter long_type_string
// @generated by protobuf-ts 2.1.0 with parameter long_type_string
// @generated from protobuf file "apponly.proto" (syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

@@ -172,3 +172,3 @@ import { MessageType } from "@protobuf-ts/runtime";

* < Bw = 125 kHz, Cr = 4/5, Sf(7) = 128chips/symbol, CRC
* < on. Default medium range (5.469 kbps)
* < on. ShortSlow | Short Range / Slow (5.469 kbps)
*

@@ -181,3 +181,3 @@ * @generated from protobuf enum value: Bw125Cr45Sf128 = 0;

* < Bw = 500 kHz, Cr = 4/5, Sf(7) = 128chips/symbol, CRC
* < on. Fast+short range (21.875 kbps)
* < on. ShortFast | Short Range / Fast (21.875 kbps)
*

@@ -190,3 +190,3 @@ * @generated from protobuf enum value: Bw500Cr45Sf128 = 1;

* < Bw = 31.25 kHz, Cr = 4/8, Sf(9) = 512chips/symbol,
* < CRC on. Slow+long range (275 bps)
* < CRC on. LongFast | Long Range / Fast (275 bps)
*

@@ -199,7 +199,23 @@ * @generated from protobuf enum value: Bw31_25Cr48Sf512 = 2;

* < Bw = 125 kHz, Cr = 4/8, Sf(12) = 4096chips/symbol, CRC
* < on. Slow+long range (183 bps)
* < on. LongSlow | Long Range / Slow (183 bps)
*
* @generated from protobuf enum value: Bw125Cr48Sf4096 = 3;
*/
Bw125Cr48Sf4096 = 3
Bw125Cr48Sf4096 = 3,
/**
*
* < Bw = 250 kHz, Cr = 4/6, Sf(11) = 2048chips/symbol, CRC
* < on. MediumSlow | Medium Range / Slow (895 bps)
*
* @generated from protobuf enum value: Bw250Cr46Sf2048 = 4;
*/
Bw250Cr46Sf2048 = 4,
/**
*
* < Bw = 250 kHz, Cr = 4/7, Sf(10) = 1024chips/symbol, CRC
* < on. MediumFast | Medium Range / Fast (1400 bps)
*
* @generated from protobuf enum value: Bw250Cr47Sf1024 = 5;
*/
Bw250Cr47Sf1024 = 5
}

@@ -206,0 +222,0 @@ /**

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.0.7 with parameter long_type_string
// @generated by protobuf-ts 2.1.0 with parameter long_type_string
// @generated from protobuf file "channel.proto" (syntax proto3)

@@ -17,3 +17,3 @@ // tslint:disable

* < Bw = 125 kHz, Cr = 4/5, Sf(7) = 128chips/symbol, CRC
* < on. Default medium range (5.469 kbps)
* < on. ShortSlow | Short Range / Slow (5.469 kbps)
*

@@ -26,3 +26,3 @@ * @generated from protobuf enum value: Bw125Cr45Sf128 = 0;

* < Bw = 500 kHz, Cr = 4/5, Sf(7) = 128chips/symbol, CRC
* < on. Fast+short range (21.875 kbps)
* < on. ShortFast | Short Range / Fast (21.875 kbps)
*

@@ -35,3 +35,3 @@ * @generated from protobuf enum value: Bw500Cr45Sf128 = 1;

* < Bw = 31.25 kHz, Cr = 4/8, Sf(9) = 512chips/symbol,
* < CRC on. Slow+long range (275 bps)
* < CRC on. LongFast | Long Range / Fast (275 bps)
*

@@ -44,3 +44,3 @@ * @generated from protobuf enum value: Bw31_25Cr48Sf512 = 2;

* < Bw = 125 kHz, Cr = 4/8, Sf(12) = 4096chips/symbol, CRC
* < on. Slow+long range (183 bps)
* < on. LongSlow | Long Range / Slow (183 bps)
*

@@ -50,2 +50,18 @@ * @generated from protobuf enum value: Bw125Cr48Sf4096 = 3;

ChannelSettings_ModemConfig[ChannelSettings_ModemConfig["Bw125Cr48Sf4096"] = 3] = "Bw125Cr48Sf4096";
/**
*
* < Bw = 250 kHz, Cr = 4/6, Sf(11) = 2048chips/symbol, CRC
* < on. MediumSlow | Medium Range / Slow (895 bps)
*
* @generated from protobuf enum value: Bw250Cr46Sf2048 = 4;
*/
ChannelSettings_ModemConfig[ChannelSettings_ModemConfig["Bw250Cr46Sf2048"] = 4] = "Bw250Cr46Sf2048";
/**
*
* < Bw = 250 kHz, Cr = 4/7, Sf(10) = 1024chips/symbol, CRC
* < on. MediumFast | Medium Range / Fast (1400 bps)
*
* @generated from protobuf enum value: Bw250Cr47Sf1024 = 5;
*/
ChannelSettings_ModemConfig[ChannelSettings_ModemConfig["Bw250Cr47Sf1024"] = 5] = "Bw250Cr47Sf1024";
})(ChannelSettings_ModemConfig || (ChannelSettings_ModemConfig = {}));

@@ -52,0 +68,0 @@ /**

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.0.7 with parameter long_type_string
// @generated by protobuf-ts 2.1.0 with parameter long_type_string
// @generated from protobuf file "deviceonly.proto" (syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

@@ -791,3 +791,3 @@ import { MessageType } from "@protobuf-ts/runtime";

*
* the node number
* The node number
*

@@ -938,2 +938,9 @@ * @generated from protobuf field: uint32 num = 1;

*
* Calculated bitrate of the current channel (in Bytes Per Second)
*
* @generated from protobuf field: float bitrate = 11;
*/
bitrate: number;
/**
*
* How long before we consider a message abandoned and we can clear our

@@ -1081,3 +1088,3 @@ * caches of any messages in flight Normally quite large to handle the worst case

*
* set to send debug console output over our protobuf stream
* Set to send debug console output over our protobuf stream
*

@@ -1091,3 +1098,3 @@ * @generated from protobuf field: LogRecord log_record = 7;

*
* sent as true once the device has finished sending all of the responses to want_config
* Sent as true once the device has finished sending all of the responses to want_config
* recipient should check if this ID matches our original request nonce, if

@@ -1118,3 +1125,3 @@ * not, it means your config responses haven't started yet.

*
* packets/commands to the radio will be written (reliably) to the toRadio characteristic.
* Packets/commands to the radio will be written (reliably) to the toRadio characteristic.
* Once the write completes the phone can assume it is handled.

@@ -1132,3 +1139,3 @@ *

*
* send this packet on the mesh
* Send this packet on the mesh
*

@@ -1152,3 +1159,3 @@ * @generated from protobuf field: MeshPacket packet = 2;

*
* phone wants radio to send full node db to the phone, This is
* Phone wants radio to send full node db to the phone, This is
* typically the first packet sent to the radio when the phone gets a

@@ -1155,0 +1162,0 @@ * bluetooth connection. The radio will respond by sending back a

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.0.7 with parameter long_type_string
// @generated by protobuf-ts 2.1.0 with parameter long_type_string
// @generated from protobuf file "mesh.proto" (syntax proto3)

@@ -713,2 +713,3 @@ // tslint:disable

{ no: 10, name: "reboot_count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
{ no: 11, name: "bitrate", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
{ no: 13, name: "message_timeout_msec", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },

@@ -715,0 +716,0 @@ { no: 14, name: "min_app_version", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.0.7 with parameter long_type_string
// @generated by protobuf-ts 2.1.0 with parameter long_type_string
// @generated from protobuf file "mqtt.proto" (syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

@@ -136,2 +136,11 @@ /**

*
* Experimental tools for estimating node position without a GPS
* Maintained by Github user a-f-G-U-C (a Meshtastic contributor)
* Project files at https://github.com/a-f-G-U-C/Meshtastic-ZPS
*
* @generated from protobuf enum value: ZPS_APP = 68;
*/
ZPS_APP = 68,
/**
*
* Private applications should use portnums >= 256.

@@ -138,0 +147,0 @@ * To simplify initial development and testing you can use "PRIVATE_APP"

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.0.7 with parameter long_type_string
// @generated by protobuf-ts 2.1.0 with parameter long_type_string
// @generated from protobuf file "portnums.proto" (syntax proto3)

@@ -140,2 +140,11 @@ // tslint:disable

*
* Experimental tools for estimating node position without a GPS
* Maintained by Github user a-f-G-U-C (a Meshtastic contributor)
* Project files at https://github.com/a-f-G-U-C/Meshtastic-ZPS
*
* @generated from protobuf enum value: ZPS_APP = 68;
*/
PortNum[PortNum["ZPS_APP"] = 68] = "ZPS_APP";
/**
*
* Private applications should use portnums >= 256.

@@ -142,0 +151,0 @@ * To simplify initial development and testing you can use "PRIVATE_APP"

@@ -18,3 +18,3 @@ import { MessageType } from "@protobuf-ts/runtime";

*
* see [software design](/software/other/sw-design.md) for more information on these preferences
* See [software design](/software/other/sw-design.md) for more information on these preferences
*

@@ -393,2 +393,6 @@ * @generated from protobuf message RadioConfig.UserPreferences

/**
* @generated from protobuf field: bool store_forward_plugin_heartbeat = 149;
*/
storeForwardPluginHeartbeat: boolean;
/**
* @generated from protobuf field: uint32 store_forward_plugin_records = 137;

@@ -398,2 +402,10 @@ */

/**
* @generated from protobuf field: uint32 store_forward_plugin_history_return_max = 138;
*/
storeForwardPluginHistoryReturnMax: number;
/**
* @generated from protobuf field: uint32 store_forward_plugin_history_return_window = 139;
*/
storeForwardPluginHistoryReturnWindow: number;
/**
*

@@ -478,2 +490,18 @@ * Preferences for the EnvironmentalMeasurement Plugin

isAlwaysPowered: boolean;
/**
*
* Automatically toggles to the next page on the screen like a carousel, based the specified interval in seconds.
* Potentially useful for devices without user buttons.
*
* @generated from protobuf field: uint32 auto_screen_carousel_secs = 152;
*/
autoScreenCarouselSecs: number;
/**
*
* If non-zero, the device will fully power off this many seconds after external power is removed.
*
*
* @generated from protobuf field: uint32 on_battery_shutdown_after_secs = 153;
*/
onBatteryShutdownAfterSecs: number;
}

@@ -480,0 +508,0 @@ /**

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.0.7 with parameter long_type_string
// @generated by protobuf-ts 2.1.0 with parameter long_type_string
// @generated from protobuf file "radioconfig.proto" (syntax proto3)

@@ -430,3 +430,6 @@ // tslint:disable

{ no: 148, name: "store_forward_plugin_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 149, name: "store_forward_plugin_heartbeat", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 137, name: "store_forward_plugin_records", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
{ no: 138, name: "store_forward_plugin_history_return_max", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
{ no: 139, name: "store_forward_plugin_history_return_window", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
{ no: 140, name: "environmental_measurement_plugin_measurement_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },

@@ -441,3 +444,5 @@ { no: 141, name: "environmental_measurement_plugin_screen_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },

{ no: 150, name: "position_flags", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
{ no: 151, name: "is_always_powered", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
{ no: 151, name: "is_always_powered", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 152, name: "auto_screen_carousel_secs", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
{ no: 153, name: "on_battery_shutdown_after_secs", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
]);

@@ -444,0 +449,0 @@ }

@@ -1,2 +0,2 @@

// @generated by protobuf-ts 2.0.7 with parameter long_type_string
// @generated by protobuf-ts 2.1.0 with parameter long_type_string
// @generated from protobuf file "remote_hardware.proto" (syntax proto3)

@@ -3,0 +3,0 @@ // tslint:disable

import { Types } from "./index.js";
import { IMeshDevice } from "./iMeshDevice.js";
import { LogRecord_Level } from "./generated/mesh.js";
import { log } from "./utils/logging.js";
/**

@@ -29,11 +31,21 @@ * Allows to connect to a Meshtastic device over WebSerial

async readFromRadio() {
// eslint-disable-next-line no-constant-condition
while (true) {
const { value, done } = await this.reader.read();
if (value) {
void this.handleFromRadio(value);
while (this.port?.readable) {
try {
// eslint-disable-next-line no-constant-condition
while (true) {
const { value, done } = await this.reader.read();
if (value) {
void this.handleFromRadio(value);
}
if (done) {
console.log("done");
this.reader.releaseLock();
break;
}
}
}
if (done) {
this.reader.releaseLock();
break;
catch (error) {
log(`ISerialCOnnection.readFromRadio`, `Device errored or disconnected: ${error}`, LogRecord_Level.CRITICAL);
await this.disconnect();
// TODO: Handle non-fatal read error.
}

@@ -40,0 +52,0 @@ }

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

@@ -27,3 +27,3 @@ "license": "GPL-3.0-only",

"dependencies": {
"@protobuf-ts/runtime": "^2.0.7",
"@protobuf-ts/runtime": "^2.1.0",
"sub-events": "^1.8.9"

@@ -33,10 +33,10 @@ },

"@babel/core": "^7.16.0",
"@protobuf-ts/plugin": "2.0.7",
"@protobuf-ts/plugin": "2.1.0",
"@types/w3c-web-serial": "^1.0.2",
"@types/web-bluetooth": "^0.0.11",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
"@verypossible/eslint-config": "^1.6.1",
"babel-plugin-module-resolver": "^4.1.0",
"eslint": "^8.3.0",
"eslint": "^8.4.1",
"eslint-config-prettier": "^8.3.0",

@@ -51,5 +51,5 @@ "eslint-import-resolver-babel-module": "^5.3.1",

"pre-commit": "^1.2.2",
"prettier": "^2.4.1",
"prettier": "^2.5.1",
"tslib": "^2.3.1",
"typedoc": "^0.22.9",
"typedoc": "^0.22.10",
"typescript": "^4.5.2"

@@ -56,0 +56,0 @@ },

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

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