mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
implement login and status request for fetching metrics from repeaters
This commit is contained in:
parent
4010cfc3b2
commit
84df5aa57f
5 changed files with 240 additions and 0 deletions
|
|
@ -59,6 +59,12 @@ class BufferReader {
|
|||
return view.getUint32(0, true);
|
||||
}
|
||||
|
||||
readInt16LE() {
|
||||
const bytes = this.readBytes(2);
|
||||
const view = new DataView(bytes.buffer);
|
||||
return view.getInt16(0, true);
|
||||
}
|
||||
|
||||
readInt32LE() {
|
||||
const bytes = this.readBytes(4);
|
||||
const view = new DataView(bytes.buffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue