implement login and status request for fetching metrics from repeaters

This commit is contained in:
liamcottle 2025-02-24 19:28:09 +13:00
parent 4010cfc3b2
commit 84df5aa57f
5 changed files with 240 additions and 0 deletions

View file

@ -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);