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.85 to 0.6.86

32

dist/generated/config.d.ts

@@ -470,6 +470,13 @@ import { MessageType } from "@protobuf-ts/runtime";

*
* Enable WiFi (disables Bluetooth)
*
* @generated from protobuf field: bool enabled = 1;
*/
enabled: boolean;
/**
*
* If set, this node will try to join the specified wifi network and
* acquire an address via DHCP
*
* @generated from protobuf field: Config.WiFiConfig.WiFiMode mode = 1;
* @generated from protobuf field: Config.WiFiConfig.WiFiMode mode = 2;
*/

@@ -482,3 +489,3 @@ mode: Config_WiFiConfig_WiFiMode;

*
* @generated from protobuf field: string ssid = 2;
* @generated from protobuf field: string ssid = 3;
*/

@@ -490,3 +497,3 @@ ssid: string;

*
* @generated from protobuf field: string psk = 3;
* @generated from protobuf field: string psk = 4;
*/

@@ -501,14 +508,7 @@ psk: string;

*
* Disables WiFi (re-enables Bluetooth)
*
* @generated from protobuf enum value: Disabled = 0;
*/
Disabled = 0,
/**
*
* This mode is used to connect to an external WiFi network
*
* @generated from protobuf enum value: Client = 1;
* @generated from protobuf enum value: Client = 0;
*/
Client = 1,
Client = 0,
/**

@@ -518,5 +518,5 @@ *

*
* @generated from protobuf enum value: AccessPoint = 2;
* @generated from protobuf enum value: AccessPoint = 1;
*/
AccessPoint = 2,
AccessPoint = 1,
/**

@@ -526,5 +526,5 @@ *

*
* @generated from protobuf enum value: AccessPointHidden = 3;
* @generated from protobuf enum value: AccessPointHidden = 2;
*/
AccessPointHidden = 3
AccessPointHidden = 2
}

@@ -531,0 +531,0 @@ /**

@@ -225,14 +225,7 @@ // @generated by protobuf-ts 2.7.0 with parameter long_type_string

*
* Disables WiFi (re-enables Bluetooth)
*
* @generated from protobuf enum value: Disabled = 0;
*/
Config_WiFiConfig_WiFiMode[Config_WiFiConfig_WiFiMode["Disabled"] = 0] = "Disabled";
/**
*
* This mode is used to connect to an external WiFi network
*
* @generated from protobuf enum value: Client = 1;
* @generated from protobuf enum value: Client = 0;
*/
Config_WiFiConfig_WiFiMode[Config_WiFiConfig_WiFiMode["Client"] = 1] = "Client";
Config_WiFiConfig_WiFiMode[Config_WiFiConfig_WiFiMode["Client"] = 0] = "Client";
/**

@@ -242,5 +235,5 @@ *

*
* @generated from protobuf enum value: AccessPoint = 2;
* @generated from protobuf enum value: AccessPoint = 1;
*/
Config_WiFiConfig_WiFiMode[Config_WiFiConfig_WiFiMode["AccessPoint"] = 2] = "AccessPoint";
Config_WiFiConfig_WiFiMode[Config_WiFiConfig_WiFiMode["AccessPoint"] = 1] = "AccessPoint";
/**

@@ -250,5 +243,5 @@ *

*
* @generated from protobuf enum value: AccessPointHidden = 3;
* @generated from protobuf enum value: AccessPointHidden = 2;
*/
Config_WiFiConfig_WiFiMode[Config_WiFiConfig_WiFiMode["AccessPointHidden"] = 3] = "AccessPointHidden";
Config_WiFiConfig_WiFiMode[Config_WiFiConfig_WiFiMode["AccessPointHidden"] = 2] = "AccessPointHidden";
})(Config_WiFiConfig_WiFiMode || (Config_WiFiConfig_WiFiMode = {}));

@@ -544,5 +537,6 @@ /**

super("Config.WiFiConfig", [
{ no: 1, name: "mode", kind: "enum", T: () => ["Config.WiFiConfig.WiFiMode", Config_WiFiConfig_WiFiMode] },
{ no: 2, name: "ssid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "psk", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
{ no: 1, name: "enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 2, name: "mode", kind: "enum", T: () => ["Config.WiFiConfig.WiFiMode", Config_WiFiConfig_WiFiMode] },
{ no: 3, name: "ssid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "psk", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
]);

@@ -549,0 +543,0 @@ }

@@ -44,3 +44,3 @@ import { Types } from "./index.js";

this.log(Types.EmitterScope.iHttpConnection, Types.Emitter.connect, `Ping succeeded, starting configuration and request timer.`, LogRecord_Level.DEBUG);
await this.configure();
this.configure();
this.readLoop = setInterval(() => {

@@ -47,0 +47,0 @@ this.readFromRadio().catch((e) => {

@@ -278,3 +278,3 @@ import { SubEvent } from "sub-events";

*/
configure(): Promise<void>;
configure(): void;
/**

@@ -281,0 +281,0 @@ * Updates the device status eliminating duplicate status events

@@ -519,3 +519,3 @@ import { SubEvent } from "sub-events";

*/
async configure() {
configure() {
this.log(Types.EmitterScope.iMeshDevice, Types.Emitter.configure, `Reading device configuration`, LogRecord_Level.DEBUG);

@@ -529,8 +529,5 @@ this.updateDeviceStatus(Types.DeviceStatusEnum.DEVICE_CONFIGURING);

}));
setTimeout(async () => {
await this.sendRaw(0, toRadio, async () => {
console.log("got Callback");
return Promise.resolve();
});
}, 2000);
setTimeout(() => {
void this.sendRaw(0, toRadio);
}, 500);
}

@@ -635,3 +632,3 @@ /**

case "rebooted":
await this.configure();
this.configure();
break;

@@ -702,2 +699,3 @@ case "moduleConfig":

handleDataPacket(dataPacket, meshPacket) {
let adminMessage = undefined;
switch (dataPacket.portnum) {

@@ -744,3 +742,3 @@ case PortNum.TEXT_MESSAGE_APP:

this.log(Types.EmitterScope.iMeshDevice, Types.Emitter.handleMeshPacket, "Received onAdminPacket", LogRecord_Level.TRACE, dataPacket.payload);
const adminMessage = AdminMessage.fromBinary(dataPacket.payload);
adminMessage = AdminMessage.fromBinary(dataPacket.payload);
switch (adminMessage.variant.oneofKind) {

@@ -747,0 +745,0 @@ case "getChannelResponse":

@@ -100,3 +100,3 @@ import { Types } from "./index.js";

this.updateDeviceStatus(Types.DeviceStatusEnum.DEVICE_CONNECTED);
await this.configure();
this.configure();
}

@@ -103,0 +103,0 @@ /**

@@ -30,4 +30,3 @@ export class Queue {

if (item) {
//delay 300ms
await new Promise((resolve) => setTimeout(resolve, 300));
await new Promise((resolve) => setTimeout(resolve, 200));
await writeToRadio(item.data);

@@ -34,0 +33,0 @@ item.waitingAck = true;

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

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

"node-protoc": "^1.0.3",
"typedoc": "^0.23.9",
"typedoc": "^0.23.10",
"typescript": "^4.7.4"

@@ -46,0 +46,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