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.38 to 0.6.39

dist/generated/cannedmessages.d.ts

134

dist/generated/admin.d.ts
import { MessageType } from "@protobuf-ts/runtime";
import { CannedMessagePluginMessagePart5 } from "./cannedmessages";
import { CannedMessagePluginMessagePart4 } from "./cannedmessages";
import { CannedMessagePluginMessagePart3 } from "./cannedmessages";
import { CannedMessagePluginMessagePart2 } from "./cannedmessages";
import { CannedMessagePluginMessagePart1 } from "./cannedmessages";
import { Channel } from "./channel";

@@ -132,2 +137,131 @@ import { User } from "./mesh";

} | {
oneofKind: "getCannedMessagePluginPart1Request";
/**
*
* Get the Canned Message Plugin message part1 in the response to this message.
*
* @generated from protobuf field: bool get_canned_message_plugin_part1_request = 36;
*/
getCannedMessagePluginPart1Request: boolean;
} | {
oneofKind: "getCannedMessagePluginPart1Response";
/**
* @generated from protobuf field: CannedMessagePluginMessagePart1 get_canned_message_plugin_part1_response = 37;
*/
getCannedMessagePluginPart1Response: CannedMessagePluginMessagePart1;
} | {
oneofKind: "getCannedMessagePluginPart2Request";
/**
*
* Get the Canned Message Plugin message part2 in the response to this message.
*
* @generated from protobuf field: bool get_canned_message_plugin_part2_request = 38;
*/
getCannedMessagePluginPart2Request: boolean;
} | {
oneofKind: "getCannedMessagePluginPart2Response";
/**
* @generated from protobuf field: CannedMessagePluginMessagePart2 get_canned_message_plugin_part2_response = 39;
*/
getCannedMessagePluginPart2Response: CannedMessagePluginMessagePart2;
} | {
oneofKind: "getCannedMessagePluginPart3Request";
/**
*
* Get the Canned Message Plugin message part3 in the response to this message.
*
* @generated from protobuf field: bool get_canned_message_plugin_part3_request = 40;
*/
getCannedMessagePluginPart3Request: boolean;
} | {
oneofKind: "getCannedMessagePluginPart3Response";
/**
* @generated from protobuf field: CannedMessagePluginMessagePart3 get_canned_message_plugin_part3_response = 41;
*/
getCannedMessagePluginPart3Response: CannedMessagePluginMessagePart3;
} | {
oneofKind: "getCannedMessagePluginPart4Request";
/**
*
* Get the Canned Message Plugin message part4 in the response to this message.
*
* @generated from protobuf field: bool get_canned_message_plugin_part4_request = 42;
*/
getCannedMessagePluginPart4Request: boolean;
} | {
oneofKind: "getCannedMessagePluginPart4Response";
/**
* @generated from protobuf field: CannedMessagePluginMessagePart4 get_canned_message_plugin_part4_response = 43;
*/
getCannedMessagePluginPart4Response: CannedMessagePluginMessagePart4;
} | {
oneofKind: "getCannedMessagePluginPart5Request";
/**
*
* Get the Canned Message Plugin message part5 in the response to this message.
*
* @generated from protobuf field: bool get_canned_message_plugin_part5_request = 44;
*/
getCannedMessagePluginPart5Request: boolean;
} | {
oneofKind: "getCannedMessagePluginPart5Response";
/**
* @generated from protobuf field: CannedMessagePluginMessagePart5 get_canned_message_plugin_part5_response = 45;
*/
getCannedMessagePluginPart5Response: CannedMessagePluginMessagePart5;
} | {
oneofKind: "setCannedMessagePluginPart1";
/**
*
* Set the canned message plugin part 1 text.
*
* @generated from protobuf field: CannedMessagePluginMessagePart1 set_canned_message_plugin_part1 = 46;
*/
setCannedMessagePluginPart1: CannedMessagePluginMessagePart1;
} | {
oneofKind: "setCannedMessagePluginPart2";
/**
*
* Set the canned message plugin part 2 text.
*
* @generated from protobuf field: CannedMessagePluginMessagePart2 set_canned_message_plugin_part2 = 47;
*/
setCannedMessagePluginPart2: CannedMessagePluginMessagePart2;
} | {
oneofKind: "setCannedMessagePluginPart3";
/**
*
* Set the canned message plugin part 3 text.
*
* @generated from protobuf field: CannedMessagePluginMessagePart3 set_canned_message_plugin_part3 = 48;
*/
setCannedMessagePluginPart3: CannedMessagePluginMessagePart3;
} | {
oneofKind: "setCannedMessagePluginPart4";
/**
*
* Set the canned message plugin part 4 text.
*
* @generated from protobuf field: CannedMessagePluginMessagePart4 set_canned_message_plugin_part4 = 49;
*/
setCannedMessagePluginPart4: CannedMessagePluginMessagePart4;
} | {
oneofKind: "setCannedMessagePluginPart5";
/**
*
* Set the canned message plugin part 5 text.
*
* @generated from protobuf field: CannedMessagePluginMessagePart5 set_canned_message_plugin_part5 = 50;
*/
setCannedMessagePluginPart5: CannedMessagePluginMessagePart5;
} | {
oneofKind: "shutdownSeconds";
/**
*
* Tell the node to shutdown in this many seconds (or <0 to cancel shutdown)
*
* @generated from protobuf field: int32 shutdown_seconds = 51;
*/
shutdownSeconds: number;
} | {
oneofKind: undefined;

@@ -134,0 +268,0 @@ };

25

dist/generated/admin.js

@@ -1,5 +0,10 @@

// @generated by protobuf-ts 2.2.1 with parameter long_type_string
// @generated by protobuf-ts 2.2.2 with parameter long_type_string
// @generated from protobuf file "admin.proto" (syntax proto3)
// tslint:disable
import { MessageType } from "@protobuf-ts/runtime";
import { CannedMessagePluginMessagePart5 } from "./cannedmessages";
import { CannedMessagePluginMessagePart4 } from "./cannedmessages";
import { CannedMessagePluginMessagePart3 } from "./cannedmessages";
import { CannedMessagePluginMessagePart2 } from "./cannedmessages";
import { CannedMessagePluginMessagePart1 } from "./cannedmessages";
import { Channel } from "./channel";

@@ -24,3 +29,19 @@ import { User } from "./mesh";

{ no: 34, name: "exit_simulator", kind: "scalar", oneof: "variant", T: 8 /*ScalarType.BOOL*/ },
{ no: 35, name: "reboot_seconds", kind: "scalar", oneof: "variant", T: 5 /*ScalarType.INT32*/ }
{ no: 35, name: "reboot_seconds", kind: "scalar", oneof: "variant", T: 5 /*ScalarType.INT32*/ },
{ no: 36, name: "get_canned_message_plugin_part1_request", kind: "scalar", oneof: "variant", T: 8 /*ScalarType.BOOL*/ },
{ no: 37, name: "get_canned_message_plugin_part1_response", kind: "message", oneof: "variant", T: () => CannedMessagePluginMessagePart1 },
{ no: 38, name: "get_canned_message_plugin_part2_request", kind: "scalar", oneof: "variant", T: 8 /*ScalarType.BOOL*/ },
{ no: 39, name: "get_canned_message_plugin_part2_response", kind: "message", oneof: "variant", T: () => CannedMessagePluginMessagePart2 },
{ no: 40, name: "get_canned_message_plugin_part3_request", kind: "scalar", oneof: "variant", T: 8 /*ScalarType.BOOL*/ },
{ no: 41, name: "get_canned_message_plugin_part3_response", kind: "message", oneof: "variant", T: () => CannedMessagePluginMessagePart3 },
{ no: 42, name: "get_canned_message_plugin_part4_request", kind: "scalar", oneof: "variant", T: 8 /*ScalarType.BOOL*/ },
{ no: 43, name: "get_canned_message_plugin_part4_response", kind: "message", oneof: "variant", T: () => CannedMessagePluginMessagePart4 },
{ no: 44, name: "get_canned_message_plugin_part5_request", kind: "scalar", oneof: "variant", T: 8 /*ScalarType.BOOL*/ },
{ no: 45, name: "get_canned_message_plugin_part5_response", kind: "message", oneof: "variant", T: () => CannedMessagePluginMessagePart5 },
{ no: 46, name: "set_canned_message_plugin_part1", kind: "message", oneof: "variant", T: () => CannedMessagePluginMessagePart1 },
{ no: 47, name: "set_canned_message_plugin_part2", kind: "message", oneof: "variant", T: () => CannedMessagePluginMessagePart2 },
{ no: 48, name: "set_canned_message_plugin_part3", kind: "message", oneof: "variant", T: () => CannedMessagePluginMessagePart3 },
{ no: 49, name: "set_canned_message_plugin_part4", kind: "message", oneof: "variant", T: () => CannedMessagePluginMessagePart4 },
{ no: 50, name: "set_canned_message_plugin_part5", kind: "message", oneof: "variant", T: () => CannedMessagePluginMessagePart5 },
{ no: 51, name: "shutdown_seconds", kind: "scalar", oneof: "variant", T: 5 /*ScalarType.INT32*/ }
]);

@@ -27,0 +48,0 @@ }

2

dist/generated/apponly.js

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

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

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

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

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

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

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

didGpsReset: boolean;
/**
*
* Canned Message Plugin message part1.
*
* @generated from protobuf field: string canned_message_plugin_message_part1 = 13;
*/
cannedMessagePluginMessagePart1: string;
/**
*
* Canned Message Plugin message part2.
*
* @generated from protobuf field: string canned_message_plugin_message_part2 = 14;
*/
cannedMessagePluginMessagePart2: string;
/**
*
* Canned Message Plugin message part3.
*
* @generated from protobuf field: string canned_message_plugin_message_part3 = 15;
*/
cannedMessagePluginMessagePart3: string;
/**
*
* Canned Message Plugin message part4.
*
* @generated from protobuf field: string canned_message_plugin_message_part4 = 16;
*/
cannedMessagePluginMessagePart4: string;
/**
*
* Canned Message Plugin message part5.
*
* @generated from protobuf field: string canned_message_plugin_message_part5 = 17;
*/
cannedMessagePluginMessagePart5: string;
}

@@ -112,0 +147,0 @@ /**

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

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

@@ -47,3 +47,8 @@ // tslint:disable

{ no: 9, name: "no_save", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 11, name: "did_gps_reset", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
{ no: 11, name: "did_gps_reset", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 13, name: "canned_message_plugin_message_part1", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 14, name: "canned_message_plugin_message_part2", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 15, name: "canned_message_plugin_message_part3", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 16, name: "canned_message_plugin_message_part4", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 17, name: "canned_message_plugin_message_part5", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
]);

@@ -50,0 +55,0 @@ }

@@ -23,2 +23,14 @@ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";

barometricPressure: number;
/**
* @generated from protobuf field: float gas_resistance = 4;
*/
gasResistance: number;
/**
* @generated from protobuf field: float voltage = 5;
*/
voltage: number;
/**
* @generated from protobuf field: float current = 6;
*/
current: number;
}

@@ -25,0 +37,0 @@ declare class EnvironmentalMeasurement$Type extends MessageType<EnvironmentalMeasurement> {

@@ -12,7 +12,10 @@ import { WireType } from "@protobuf-ts/runtime";

{ no: 2, name: "relative_humidity", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
{ no: 3, name: "barometric_pressure", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
{ no: 3, name: "barometric_pressure", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
{ no: 4, name: "gas_resistance", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
{ no: 5, name: "voltage", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
{ no: 6, name: "current", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
]);
}
create(value) {
const message = { temperature: 0, relativeHumidity: 0, barometricPressure: 0 };
const message = { temperature: 0, relativeHumidity: 0, barometricPressure: 0, gasResistance: 0, voltage: 0, current: 0 };
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this });

@@ -37,2 +40,11 @@ if (value !== undefined)

break;
case /* float gas_resistance */ 4:
message.gasResistance = reader.float();
break;
case /* float voltage */ 5:
message.voltage = reader.float();
break;
case /* float current */ 6:
message.current = reader.float();
break;
default:

@@ -59,2 +71,11 @@ let u = options.readUnknownField;

writer.tag(3, WireType.Bit32).float(message.barometricPressure);
/* float gas_resistance = 4; */
if (message.gasResistance !== 0)
writer.tag(4, WireType.Bit32).float(message.gasResistance);
/* float voltage = 5; */
if (message.voltage !== 0)
writer.tag(5, WireType.Bit32).float(message.voltage);
/* float current = 6; */
if (message.current !== 0)
writer.tag(6, WireType.Bit32).float(message.current);
let u = options.writeUnknownFields;

@@ -61,0 +82,0 @@ if (u !== false)

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

requestId: number;
/**
*
* If set, this message is intened to be a reply to a previously sent message with the defined id.
*
* @generated from protobuf field: fixed32 reply_id = 7;
*/
replyId: number;
/**
*
* Defaults to false. If true, then what is in the payload should be treated as an emoji like giving
* a message a heart or poop emoji.
*
* @generated from protobuf field: bool is_tapback = 8;
*/
isTapback: boolean;
}

@@ -694,17 +709,2 @@ /**

delayed: MeshPacket_Delayed;
/**
*
* If set, this message is intened to be a reply to a previously sent message with the defined id.
*
* @generated from protobuf field: fixed32 reply_id = 16;
*/
replyId: number;
/**
*
* Defaults to false. If true, then what is in the payload should be treated as an emoji like giving
* a message a heart or poop emoji.
*
* @generated from protobuf field: bool is_tapback = 17;
*/
isTapback: boolean;
}

@@ -1015,3 +1015,3 @@ /**

*
* 48 time windows of 1hr each with the airtime transmitted out of the device per hour.
* 24 time windows of 1hr each with the airtime transmitted out of the device per hour.
*

@@ -1023,3 +1023,3 @@ * @generated from protobuf field: repeated uint32 air_period_tx = 16;

*
* 48 time windows of 1hr each with the airtime of valid packets for your mesh.
* 24 time windows of 1hr each with the airtime of valid packets for your mesh.
*

@@ -1043,2 +1043,9 @@ * @generated from protobuf field: repeated uint32 air_period_rx = 17;

channelUtilization: number;
/**
*
* Percent of airtime for transmission used within the last hour.
*
* @generated from protobuf field: float air_util_tx = 20;
*/
airUtilTx: number;
}

@@ -1394,3 +1401,17 @@ /**

*/
DIY_V1 = 39
DIY_V1 = 39,
/**
*
* RAK WisBlock ESP32 core: https://docs.rakwireless.com/Product-Categories/WisBlock/RAK11200/Overview/
*
* @generated from protobuf enum value: RAK11200 = 40;
*/
RAK11200 = 40,
/**
*
* Reserved ID For developing private Ports. These will show up in live traffic sparsely, so we can use a high number. Keep it within 8 bits.
*
* @generated from protobuf enum value: PRIVATE_HW = 255;
*/
PRIVATE_HW = 255
}

@@ -1397,0 +1418,0 @@ /**

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

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

@@ -403,2 +403,16 @@ // tslint:disable

HardwareModel[HardwareModel["DIY_V1"] = 39] = "DIY_V1";
/**
*
* RAK WisBlock ESP32 core: https://docs.rakwireless.com/Product-Categories/WisBlock/RAK11200/Overview/
*
* @generated from protobuf enum value: RAK11200 = 40;
*/
HardwareModel[HardwareModel["RAK11200"] = 40] = "RAK11200";
/**
*
* Reserved ID For developing private Ports. These will show up in live traffic sparsely, so we can use a high number. Keep it within 8 bits.
*
* @generated from protobuf enum value: PRIVATE_HW = 255;
*/
HardwareModel[HardwareModel["PRIVATE_HW"] = 255] = "PRIVATE_HW";
})(HardwareModel || (HardwareModel = {}));

@@ -688,3 +702,5 @@ /**

{ no: 5, name: "source", kind: "scalar", T: 7 /*ScalarType.FIXED32*/ },
{ no: 6, name: "request_id", kind: "scalar", T: 7 /*ScalarType.FIXED32*/ }
{ no: 6, name: "request_id", kind: "scalar", T: 7 /*ScalarType.FIXED32*/ },
{ no: 7, name: "reply_id", kind: "scalar", T: 7 /*ScalarType.FIXED32*/ },
{ no: 8, name: "is_tapback", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
]);

@@ -713,5 +729,3 @@ }

{ no: 13, name: "rx_rssi", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
{ no: 15, name: "delayed", kind: "enum", T: () => ["MeshPacket.Delayed", MeshPacket_Delayed] },
{ no: 16, name: "reply_id", kind: "scalar", T: 7 /*ScalarType.FIXED32*/ },
{ no: 17, name: "is_tapback", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
{ no: 15, name: "delayed", kind: "enum", T: () => ["MeshPacket.Delayed", MeshPacket_Delayed] }
]);

@@ -761,3 +775,4 @@ }

{ no: 18, name: "has_wifi", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 19, name: "channel_utilization", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
{ no: 19, name: "channel_utilization", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ },
{ no: 20, name: "air_util_tx", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
]);

@@ -764,0 +779,0 @@ }

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

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

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

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

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

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

@@ -604,10 +604,14 @@ import { MessageType } from "@protobuf-ts/runtime";

*
* @generated from protobuf field: string canned_message_plugin_allow_input_origin = 171;
* @generated from protobuf field: string canned_message_plugin_allow_input_source = 171;
*/
cannedMessagePluginAllowInputOrigin: string;
cannedMessagePluginAllowInputSource: string;
/**
*
* Predefined messages for CannedMessagePlugin separated by '|' characters.
* Note: Split out the messages out to their own messages because we want to store 1,000 characters.
* and the entire message must fit within 256 bytes.
* Not sure if we should deprecate this or just remove it since we're in dev phase.
*
* @generated from protobuf field: string canned_message_plugin_messages = 172;
* @deprecated
* @generated from protobuf field: string canned_message_plugin_messages = 172 [deprecated = true];
*/

@@ -623,2 +627,21 @@ cannedMessagePluginMessages: string;

cannedMessagePluginSendBell: boolean;
/**
*
* Whether to send encrypted or decrypted packets to MQTT.
* This parameter is only honoured if you also set mqtt_server
* (the default official mqtt.meshtastic.org server can handle encrypted packets)
*
* Decrypted packets may be useful for external systems that want to consume meshtastic packets
*
* @generated from protobuf field: bool mqtt_encryption_enabled = 174;
*/
mqttEncryptionEnabled: boolean;
/**
*
* Ratio of voltage divider for battery pin eg. 3.20 (R1=100k, R2=220k)
* Overrides the ADC_MULTIPLIER defined in variant for battery voltage calculation.
*
* @generated from protobuf field: float adc_multiplier_override = 175;
*/
adcMultiplierOverride: number;
}

@@ -636,3 +659,27 @@ /**

*/
DS18B20 = 1
DS18B20 = 1,
/**
* @generated from protobuf enum value: DHT12 = 2;
*/
DHT12 = 2,
/**
* @generated from protobuf enum value: DHT21 = 3;
*/
DHT21 = 3,
/**
* @generated from protobuf enum value: DHT22 = 4;
*/
DHT22 = 4,
/**
* @generated from protobuf enum value: BME280 = 5;
*/
BME280 = 5,
/**
* @generated from protobuf enum value: BME680 = 6;
*/
BME680 = 6,
/**
* @generated from protobuf enum value: MCP9808 = 7;
*/
MCP9808 = 7
}

@@ -984,35 +1031,35 @@ /**

/**
* @generated from protobuf enum value: NULL = 0;
* @generated from protobuf enum value: KEY_NONE = 0;
*/
NULL = 0,
KEY_NONE = 0,
/**
* @generated from protobuf enum value: UP = 17;
* @generated from protobuf enum value: KEY_UP = 17;
*/
UP = 17,
KEY_UP = 17,
/**
* @generated from protobuf enum value: DOWN = 18;
* @generated from protobuf enum value: KEY_DOWN = 18;
*/
DOWN = 18,
KEY_DOWN = 18,
/**
* @generated from protobuf enum value: LEFT = 19;
* @generated from protobuf enum value: KEY_LEFT = 19;
*/
LEFT = 19,
KEY_LEFT = 19,
/**
* @generated from protobuf enum value: RIGHT = 20;
* @generated from protobuf enum value: KEY_RIGHT = 20;
*/
RIGHT = 20,
KEY_RIGHT = 20,
/**
* '\n'
*
* @generated from protobuf enum value: SELECT = 10;
* @generated from protobuf enum value: KEY_SELECT = 10;
*/
SELECT = 10,
KEY_SELECT = 10,
/**
* @generated from protobuf enum value: BACK = 27;
* @generated from protobuf enum value: KEY_BACK = 27;
*/
BACK = 27,
KEY_BACK = 27,
/**
* @generated from protobuf enum value: CANCEL = 24;
* @generated from protobuf enum value: KEY_CANCEL = 24;
*/
CANCEL = 24
KEY_CANCEL = 24
}

@@ -1019,0 +1066,0 @@ declare class RadioConfig$Type extends MessageType<RadioConfig> {

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

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

@@ -18,2 +18,26 @@ // tslint:disable

RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType[RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType["DS18B20"] = 1] = "DS18B20";
/**
* @generated from protobuf enum value: DHT12 = 2;
*/
RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType[RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType["DHT12"] = 2] = "DHT12";
/**
* @generated from protobuf enum value: DHT21 = 3;
*/
RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType[RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType["DHT21"] = 3] = "DHT21";
/**
* @generated from protobuf enum value: DHT22 = 4;
*/
RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType[RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType["DHT22"] = 4] = "DHT22";
/**
* @generated from protobuf enum value: BME280 = 5;
*/
RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType[RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType["BME280"] = 5] = "BME280";
/**
* @generated from protobuf enum value: BME680 = 6;
*/
RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType[RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType["BME680"] = 6] = "BME680";
/**
* @generated from protobuf enum value: MCP9808 = 7;
*/
RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType[RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType["MCP9808"] = 7] = "MCP9808";
})(RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType || (RadioConfig_UserPreferences_EnvironmentalMeasurementSensorType = {}));

@@ -372,35 +396,35 @@ /**

/**
* @generated from protobuf enum value: NULL = 0;
* @generated from protobuf enum value: KEY_NONE = 0;
*/
InputEventChar[InputEventChar["NULL"] = 0] = "NULL";
InputEventChar[InputEventChar["KEY_NONE"] = 0] = "KEY_NONE";
/**
* @generated from protobuf enum value: UP = 17;
* @generated from protobuf enum value: KEY_UP = 17;
*/
InputEventChar[InputEventChar["UP"] = 17] = "UP";
InputEventChar[InputEventChar["KEY_UP"] = 17] = "KEY_UP";
/**
* @generated from protobuf enum value: DOWN = 18;
* @generated from protobuf enum value: KEY_DOWN = 18;
*/
InputEventChar[InputEventChar["DOWN"] = 18] = "DOWN";
InputEventChar[InputEventChar["KEY_DOWN"] = 18] = "KEY_DOWN";
/**
* @generated from protobuf enum value: LEFT = 19;
* @generated from protobuf enum value: KEY_LEFT = 19;
*/
InputEventChar[InputEventChar["LEFT"] = 19] = "LEFT";
InputEventChar[InputEventChar["KEY_LEFT"] = 19] = "KEY_LEFT";
/**
* @generated from protobuf enum value: RIGHT = 20;
* @generated from protobuf enum value: KEY_RIGHT = 20;
*/
InputEventChar[InputEventChar["RIGHT"] = 20] = "RIGHT";
InputEventChar[InputEventChar["KEY_RIGHT"] = 20] = "KEY_RIGHT";
/**
* '\n'
*
* @generated from protobuf enum value: SELECT = 10;
* @generated from protobuf enum value: KEY_SELECT = 10;
*/
InputEventChar[InputEventChar["SELECT"] = 10] = "SELECT";
InputEventChar[InputEventChar["KEY_SELECT"] = 10] = "KEY_SELECT";
/**
* @generated from protobuf enum value: BACK = 27;
* @generated from protobuf enum value: KEY_BACK = 27;
*/
InputEventChar[InputEventChar["BACK"] = 27] = "BACK";
InputEventChar[InputEventChar["KEY_BACK"] = 27] = "KEY_BACK";
/**
* @generated from protobuf enum value: CANCEL = 24;
* @generated from protobuf enum value: KEY_CANCEL = 24;
*/
InputEventChar[InputEventChar["CANCEL"] = 24] = "CANCEL";
InputEventChar[InputEventChar["KEY_CANCEL"] = 24] = "KEY_CANCEL";
})(InputEventChar || (InputEventChar = {}));

@@ -501,5 +525,7 @@ // @generated message type with reflection information, may provide speed optimized methods

{ no: 170, name: "canned_message_plugin_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 171, name: "canned_message_plugin_allow_input_origin", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 171, name: "canned_message_plugin_allow_input_source", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 172, name: "canned_message_plugin_messages", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 173, name: "canned_message_plugin_send_bell", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
{ no: 173, name: "canned_message_plugin_send_bell", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 174, name: "mqtt_encryption_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 175, name: "adc_multiplier_override", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
]);

@@ -506,0 +532,0 @@ }

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

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

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

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

// @generated by protobuf-ts 2.2.1 with parameter long_type_string
// @generated by protobuf-ts 2.2.2 with parameter long_type_string
// @generated from protobuf file "storeforward.proto" (syntax proto3)

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

import { SubEvent } from "sub-events";
import { Protobuf, Types } from "./index.js";
import type { Channel } from "./generated/channel.js";

@@ -7,2 +6,3 @@ import { User } from "./generated/mesh.js";

import { RadioConfig_UserPreferences } from "./generated/radioconfig.js";
import { Protobuf, Types } from "./index.js";
import type { ConnectionParameters } from "./types.js";

@@ -180,3 +180,3 @@ /**

*/
sendPacket(byteData: Uint8Array, portNum: PortNum, destinationNum?: number, wantAck?: boolean, channel?: number, wantResponse?: boolean, echoResponse?: boolean, callback?: (id: number) => Promise<void>): Promise<void>;
sendPacket(byteData: Uint8Array, portNum: PortNum, destinationNum?: number, wantAck?: boolean, channel?: number, wantResponse?: boolean, echoResponse?: boolean, callback?: (id: number) => Promise<void>, isTapback?: boolean, replyId?: number): Promise<void>;
/**

@@ -183,0 +183,0 @@ * Sends raw packet over the radio

import { SubEvent } from "sub-events";
import { Protobuf, Types } from "./index.js";
import { BROADCAST_NUM, MIN_FW_VERSION } from "./constants.js";
import { AdminMessage } from "./generated/admin.js";
import { Routing, FromRadio, LogRecord_Level, MeshPacket, MyNodeInfo, Position, ToRadio, User } from "./generated/mesh.js";
import { FromRadio, LogRecord_Level, MeshPacket, MyNodeInfo, Position, Routing, ToRadio, User } from "./generated/mesh.js";
import { PortNum } from "./generated/portnums.js";
import { RadioConfig_UserPreferences } from "./generated/radioconfig.js";
import { Protobuf, Types } from "./index.js";
import { log } from "./utils/logging.js";

@@ -196,3 +196,3 @@ import { responseQueue } from "./utils/responseQueue.js";

*/
async sendPacket(byteData, portNum, destinationNum, wantAck = false, channel = 0, wantResponse = false, echoResponse = false, callback) {
async sendPacket(byteData, portNum, destinationNum, wantAck = false, channel = 0, wantResponse = false, echoResponse = false, callback, isTapback = false, replyId = 0) {
log(`IMeshDevice.sendPacket`, `Sending ${Protobuf.PortNum[portNum]} to ${destinationNum}`, LogRecord_Level.TRACE);

@@ -205,2 +205,4 @@ const meshPacket = MeshPacket.create({

wantResponse,
isTapback,
replyId,
dest: 0,

@@ -207,0 +209,0 @@ requestId: 0,

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

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

"dependencies": {
"@protobuf-ts/runtime": "^2.2.1",
"@protobuf-ts/runtime": "^2.2.2",
"sub-events": "^1.8.9"
},
"devDependencies": {
"@babel/core": "^7.16.7",
"@protobuf-ts/plugin": "2.2.1",
"@babel/core": "^7.17.0",
"@protobuf-ts/plugin": "2.2.2",
"@types/w3c-web-serial": "^1.0.2",
"@types/web-bluetooth": "^0.0.12",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2",
"@verypossible/eslint-config": "^1.6.1",
"babel-plugin-module-resolver": "^4.1.0",
"eslint": "^8.6.0",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.3.0",

@@ -52,4 +52,4 @@ "eslint-import-resolver-babel-module": "^5.3.1",

"tslib": "^2.3.1",
"typedoc": "^0.22.10",
"typescript": "^4.5.4"
"typedoc": "^0.22.11",
"typescript": "^4.5.5"
},

@@ -56,0 +56,0 @@ "scripts": {

# Meshtastic.js
[![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/meshtastic/meshtastic.js) ![NPM](https://badgen.net/npm/v/@meshtastic/meshtasticjs) ![Downloads](https://badgen.net/npm/dt/@meshtastic/meshtasticjs)
[![Open in Visual Studio Code](https://open.vscode.dev/badges/open-in-vscode.svg)](https://open.vscode.dev/meshtastic/meshtastic.js) ![NPM](https://badgen.net/npm/v/@meshtastic/meshtasticjs) ![Downloads](https://badgen.net/npm/dt/@meshtastic/meshtasticjs) [![CI](https://github.com/meshtastic/meshtastic.js/actions/workflows/ci.yml/badge.svg)](https://github.com/meshtastic/meshtastic.js/actions/workflows/ci.yml)

@@ -5,0 +5,0 @@ ## Overview

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

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