@meshtastic/meshtasticjs
Advanced tools
Comparing version 0.6.36 to 0.6.37
@@ -305,3 +305,3 @@ import { MessageType } from "@protobuf-ts/runtime"; | ||
* | ||
* In some regions HAM radio operators have different bandwidth limitations than others. | ||
* In some regions Ham radio operators have different bandwidth limitations than others. | ||
* If this user is a licensed operator, set this flag. | ||
@@ -687,2 +687,24 @@ * Also, "long_name" should be their licence number. | ||
rxRssi: number; | ||
/** | ||
* | ||
* Describe if this message is delayed | ||
* | ||
* @generated from protobuf field: MeshPacket.Delayed delayed = 15; | ||
*/ | ||
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; | ||
} | ||
@@ -766,2 +788,31 @@ /** | ||
* | ||
* Identify if this is a delayed packet | ||
* | ||
* @generated from protobuf enum MeshPacket.Delayed | ||
*/ | ||
export declare enum MeshPacket_Delayed { | ||
/** | ||
* | ||
* If unset, the message is being sent in real time. | ||
* | ||
* @generated from protobuf enum value: NO_DELAY = 0; | ||
*/ | ||
NO_DELAY = 0, | ||
/** | ||
* | ||
* The message is delayed and was originally a broadcast | ||
* | ||
* @generated from protobuf enum value: DELAYED_BROADCAST = 1; | ||
*/ | ||
DELAYED_BROADCAST = 1, | ||
/** | ||
* | ||
* The message is delayed and was originally a direct message | ||
* | ||
* @generated from protobuf enum value: DELAYED_DIRECT = 2; | ||
*/ | ||
DELAYED_DIRECT = 2 | ||
} | ||
/** | ||
* | ||
* The bluetooth to device link: | ||
@@ -984,2 +1035,9 @@ * | ||
hasWifi: boolean; | ||
/** | ||
* | ||
* Utilization for the current channel, including well formed TX, RX and malformed RX (aka noise). | ||
* | ||
* @generated from protobuf field: float channel_utilization = 19; | ||
*/ | ||
channelUtilization: number; | ||
} | ||
@@ -1290,3 +1348,9 @@ /** | ||
/** | ||
* Ancient heltec WiFi_Lora_32 board | ||
* | ||
* @generated from protobuf enum value: HELTEC_V1 = 11; | ||
*/ | ||
HELTEC_V1 = 11, | ||
/** | ||
* | ||
* Less common/prototype boards listed here (needs one more byte over the air) | ||
@@ -1293,0 +1357,0 @@ * |
@@ -232,2 +232,32 @@ // @generated by protobuf-ts 2.1.0 with parameter long_type_string | ||
* | ||
* Identify if this is a delayed packet | ||
* | ||
* @generated from protobuf enum MeshPacket.Delayed | ||
*/ | ||
export var MeshPacket_Delayed; | ||
(function (MeshPacket_Delayed) { | ||
/** | ||
* | ||
* If unset, the message is being sent in real time. | ||
* | ||
* @generated from protobuf enum value: NO_DELAY = 0; | ||
*/ | ||
MeshPacket_Delayed[MeshPacket_Delayed["NO_DELAY"] = 0] = "NO_DELAY"; | ||
/** | ||
* | ||
* The message is delayed and was originally a broadcast | ||
* | ||
* @generated from protobuf enum value: DELAYED_BROADCAST = 1; | ||
*/ | ||
MeshPacket_Delayed[MeshPacket_Delayed["DELAYED_BROADCAST"] = 1] = "DELAYED_BROADCAST"; | ||
/** | ||
* | ||
* The message is delayed and was originally a direct message | ||
* | ||
* @generated from protobuf enum value: DELAYED_DIRECT = 2; | ||
*/ | ||
MeshPacket_Delayed[MeshPacket_Delayed["DELAYED_DIRECT"] = 2] = "DELAYED_DIRECT"; | ||
})(MeshPacket_Delayed || (MeshPacket_Delayed = {})); | ||
/** | ||
* | ||
* Log levels, chosen to match python logging conventions. | ||
@@ -328,3 +358,9 @@ * | ||
/** | ||
* Ancient heltec WiFi_Lora_32 board | ||
* | ||
* @generated from protobuf enum value: HELTEC_V1 = 11; | ||
*/ | ||
HardwareModel[HardwareModel["HELTEC_V1"] = 11] = "HELTEC_V1"; | ||
/** | ||
* | ||
* Less common/prototype boards listed here (needs one more byte over the air) | ||
@@ -676,3 +712,6 @@ * | ||
{ no: 12, name: "priority", kind: "enum", T: () => ["MeshPacket.Priority", MeshPacket_Priority] }, | ||
{ no: 13, name: "rx_rssi", kind: "scalar", T: 5 /*ScalarType.INT32*/ } | ||
{ 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*/ } | ||
]); | ||
@@ -721,3 +760,4 @@ } | ||
{ no: 17, name: "air_period_rx", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 13 /*ScalarType.UINT32*/ }, | ||
{ no: 18, name: "has_wifi", kind: "scalar", T: 8 /*ScalarType.BOOL*/ } | ||
{ no: 18, name: "has_wifi", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, | ||
{ no: 19, name: "channel_utilization", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ } | ||
]); | ||
@@ -724,0 +764,0 @@ } |
@@ -241,3 +241,2 @@ import { MessageType } from "@protobuf-ts/runtime"; | ||
* Solutions above this value will be treated as retryable errors! | ||
* | ||
* Useful range is between 1 - 64 (3m - <~200m) | ||
@@ -504,2 +503,43 @@ * By default (if zero), accept all GPS readings | ||
onBatteryShutdownAfterSecs: number; | ||
/** | ||
* | ||
* Overrides HOPS_RELIABLE and sets the maximum number of hops. This can't be greater than 7. | ||
* | ||
* | ||
* @generated from protobuf field: uint32 hop_limit = 154; | ||
*/ | ||
hopLimit: number; | ||
/** | ||
* | ||
* MQTT username to use (most useful for a custom MQTT server). | ||
* If using a custom server, this will be honoured even if empty. | ||
* If using the default server, this will only be honoured if set, otherwise the device will use the default username | ||
* | ||
* @generated from protobuf field: string mqtt_username = 155; | ||
*/ | ||
mqttUsername: string; | ||
/** | ||
* | ||
* MQTT password to use (most useful for a custom MQTT server). | ||
* If using a custom server, this will be honoured even if empty. | ||
* If using the default server, this will only be honoured if set, otherwise the device will use the default password | ||
* | ||
* @generated from protobuf field: string mqtt_password = 156; | ||
*/ | ||
mqttPassword: string; | ||
/** | ||
* | ||
* Disable TX from the LoRa radio. Useful for hot-swapping antennas and other tests. | ||
* Defaults to false | ||
* | ||
* @generated from protobuf field: bool is_lora_tx_disabled = 157; | ||
*/ | ||
isLoraTxDisabled: boolean; | ||
/** | ||
* | ||
* If set to true, enable power saving features of the esp32 | ||
* | ||
* @generated from protobuf field: bool is_power_saving = 158; | ||
*/ | ||
isPowerSaving: boolean; | ||
} | ||
@@ -506,0 +546,0 @@ /** |
@@ -445,3 +445,8 @@ // @generated by protobuf-ts 2.1.0 with parameter long_type_string | ||
{ 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*/ } | ||
{ no: 153, name: "on_battery_shutdown_after_secs", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }, | ||
{ no: 154, name: "hop_limit", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }, | ||
{ no: 155, name: "mqtt_username", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, | ||
{ no: 156, name: "mqtt_password", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, | ||
{ no: 157, name: "is_lora_tx_disabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, | ||
{ no: 158, name: "is_power_saving", kind: "scalar", T: 8 /*ScalarType.BOOL*/ } | ||
]); | ||
@@ -448,0 +453,0 @@ } |
@@ -47,3 +47,3 @@ import { Types } from "./index.js"; | ||
catch (error) { | ||
log(`ISerialCOnnection.readFromRadio`, `Device errored or disconnected: ${error}`, LogRecord_Level.CRITICAL); | ||
log(`ISerialConnection.readFromRadio`, `Device errored or disconnected: ${error}`, LogRecord_Level.CRITICAL); | ||
await this.disconnect(); | ||
@@ -50,0 +50,0 @@ /** |
{ | ||
"name": "@meshtastic/meshtasticjs", | ||
"version": "0.6.36", | ||
"version": "0.6.37", | ||
"description": "Browser library for interfacing with meshtastic devices", | ||
@@ -31,11 +31,11 @@ "license": "GPL-3.0-only", | ||
"devDependencies": { | ||
"@babel/core": "^7.16.5", | ||
"@babel/core": "^7.16.7", | ||
"@protobuf-ts/plugin": "2.1.0", | ||
"@types/w3c-web-serial": "^1.0.2", | ||
"@types/web-bluetooth": "^0.0.12", | ||
"@typescript-eslint/eslint-plugin": "^5.7.0", | ||
"@typescript-eslint/parser": "^5.7.0", | ||
"@typescript-eslint/eslint-plugin": "^5.9.0", | ||
"@typescript-eslint/parser": "^5.9.0", | ||
"@verypossible/eslint-config": "^1.6.1", | ||
"babel-plugin-module-resolver": "^4.1.0", | ||
"eslint": "^8.4.1", | ||
"eslint": "^8.6.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
@@ -45,4 +45,4 @@ "eslint-import-resolver-babel-module": "^5.3.1", | ||
"eslint-import-resolver-typescript": "^2.5.0", | ||
"eslint-plugin-import": "^2.25.3", | ||
"eslint-plugin-react": "^7.27.1", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-react": "^7.28.0", | ||
"eslint-plugin-react-hooks": "^4.3.0", | ||
@@ -49,0 +49,0 @@ "node-protoc": "^1.0.3", |
@@ -52,1 +52,3 @@ # Meshtastic.js | ||
![Web Serial compatability matrix](https://caniuse.bitsofco.de/image/web-serial.png) | ||
[![Powered by Vercel](https://raw.githubusercontent.com/abumalick/powered-by-vercel/master/powered-by-vercel.svg)](https://vercel.com?utm_source=meshtastic&utm_campaign=oss) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
405378
7861
54