mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
regressing rn
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// Config Loader Helper
|
||||
// Purpose: Loads and validates YAML server configuration from configured paths. Scope: Provides normalized config access with sane defaults and cache behavior.
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const yaml = require('js-yaml');
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// IP Resolver Helper
|
||||
// Purpose: Resolves client IP addresses from request/socket metadata and proxy headers. Scope: Normalizes IP extraction so auth/logging services use consistent address values.
|
||||
const net = require('net');
|
||||
|
||||
function extractForwardedIp(value) {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Sensor Decoder Helper
|
||||
// Purpose: Decodes incoming rover sensor payloads into normalized telemetry fields. Scope: Handles binary/string parsing and defensive fallback behavior for malformed frames.
|
||||
const HEADER = 0x13;
|
||||
const CHARGING_STATE = {
|
||||
0: 'not charging',
|
||||
|
||||
Reference in New Issue
Block a user