@meshtastic/meshtasticjs
Advanced tools
Comparing version 0.6.95 to 0.6.96
@@ -698,4 +698,4 @@ import { MessageType } from "@protobuf-ts/runtime"; | ||
* | ||
* Overrides HOPS_RELIABLE and sets the maximum number of hops. This can't be greater than 7. | ||
* 0 for default of 3 | ||
* Maximum number of hops. This can't be greater than 7. | ||
* Default of 3 | ||
* | ||
@@ -702,0 +702,0 @@ * @generated from protobuf field: uint32 hop_limit = 8; |
@@ -131,2 +131,9 @@ import { MessageType } from "@protobuf-ts/runtime"; | ||
encryptionEnabled: boolean; | ||
/** | ||
* | ||
* Whether to send / consume json packets on MQTT | ||
* | ||
* @generated from protobuf field: bool json_enabled = 6; | ||
*/ | ||
jsonEnabled: boolean; | ||
} | ||
@@ -133,0 +140,0 @@ /** |
@@ -190,3 +190,4 @@ // @generated by protobuf-ts 2.8.0 with parameter long_type_string | ||
{ no: 4, name: "password", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, | ||
{ no: 5, name: "encryption_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ } | ||
{ no: 5, name: "encryption_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, | ||
{ no: 6, name: "json_enabled", kind: "scalar", T: 8 /*ScalarType.BOOL*/ } | ||
]); | ||
@@ -193,0 +194,0 @@ } |
@@ -37,6 +37,2 @@ /// <reference types="web-bluetooth" /> | ||
/** | ||
* Queue that holds data to be written to the device, to prevent simultaneous writes | ||
*/ | ||
writeQueue: Uint8Array[]; | ||
/** | ||
* Weather the we should currently write to the device or not, to prevent simultaneous writes | ||
@@ -43,0 +39,0 @@ */ |
@@ -39,6 +39,2 @@ import { Types } from "./index.js"; | ||
/** | ||
* Queue that holds data to be written to the device, to prevent simultaneous writes | ||
*/ | ||
writeQueue; | ||
/** | ||
* Weather the we should currently write to the device or not, to prevent simultaneous writes | ||
@@ -60,3 +56,2 @@ */ | ||
this.userInitiatedDisconnect = false; | ||
this.writeQueue = []; | ||
this.writeLock = false; | ||
@@ -165,29 +160,4 @@ this.pendingRead = false; | ||
await this.readFromRadio(); | ||
// this.writeQueue.push(data); | ||
// if (this.writeLock) { | ||
// return Promise.resolve(); | ||
// } else { | ||
// this.writeLock = true; | ||
// if (this.toRadioCharacteristic) { | ||
// while (this.writeQueue.length) { | ||
// if (this.writeQueue[0]) { | ||
// await this.toRadioCharacteristic | ||
// .writeValue(typedArrayToBuffer(this.writeQueue[0])) | ||
// .then(() => { | ||
// this.writeQueue.shift(); | ||
// }) | ||
// .catch(({ message }: { message: string }) => { | ||
// this.log( | ||
// Types.EmitterScope.iBleConnection, | ||
// Types.Emitter.writeToRadio, | ||
// message, | ||
// LogRecord_Level.ERROR | ||
// ); | ||
// }); | ||
// } | ||
// } | ||
// } | ||
// } | ||
} | ||
} | ||
//# sourceMappingURL=iBleConnection.js.map |
{ | ||
"name": "@meshtastic/meshtasticjs", | ||
"version": "0.6.95", | ||
"version": "0.6.96", | ||
"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.11", | ||
"typedoc": "^0.23.14", | ||
"typescript": "^4.8.2" | ||
@@ -46,0 +46,0 @@ }, |
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
520307
10714