Repository navigation
Path Map
The device state LORAX exposes as filesystem-like paths. /p/... is device
(product) state; /u/... is user settings. readShort pulls a value, writeShort
sets one. These are the paths I've identified and typed — the same registry the
decoder uses to label a capture.
Types are the Peak Pro (apiSeries 0) encoding: temps are float32 Celsius on the wire. On a Proxy (apiSeries 1) the numeric ones are int32 with a scale divisor — see Protocol Reference § Device variants.
| path | type | meaning |
|---|---|---|
/p/sys/hw/ser |
string | Device serial number |
/p/sys/hw/mdcd |
u32 | Model code |
/u/sys/name |
string | User-set device name |
/p/sys/bt/mac |
mac | Bluetooth MAC address |
/p/sys/bt/tba |
bytes | BT bonded address(es) |
/p/sys/fw/gith |
string | Firmware git hash |
/p/sys/fw/api |
u32 | Firmware API version (apiSeries = value >> 16) |
/p/sys/time |
u32 | Device uptime / clock (ticks) |
/u/sys/bday |
u32 | Device birthday (epoch) |
| path | type | meaning |
|---|---|---|
/p/bat/soc |
float32 | Battery state-of-charge (%) |
/u/bat/msoc |
float32 | Battery SOC mirror (%) |
/p/bat/cap |
float32 | Battery capacity (mAh) |
/p/bat/chg/stat |
u8 | Charge state (0 = not charging) |
/p/bat/chg/etf |
float32 | Est. time to full (s) |
| path | type | meaning |
|---|---|---|
/p/app/htr/temp |
float32 | Heater temperature (C) |
/p/app/htr/tcmd |
float32 | Heater temp command (C) |
/p/htr/tcmd |
float32 | Heater temp command (C), alt path |
/p/htr/chmt |
u8 | Chamber present / type |
/p/htr/chdt |
bytes | Chamber detect data |
| path | type | meaning |
|---|---|---|
/p/app/mc |
u8 | Mode command — write to control the device (see Driving the Device) |
/p/app/hcs |
i8 | Heat-cycle state (-1 = temp cycle, 0..3 = profile) |
/p/app/stat/id |
u8 | Operating state id |
/p/app/stat/elap |
float32 | State elapsed time (s) |
/p/app/stat/tott |
float32 | State total time (s) |
| path | type | meaning |
|---|---|---|
/p/app/odom/0/nc |
float32 | Odometer: total heat cycles |
/p/app/odom/0/tm |
float32 | Odometer: total heat time (s) |
/p/app/info/dpd |
float32 | Dabs per day |
/p/app/info/drem |
float32 | Approx dabs remaining |
| path | type | meaning |
|---|---|---|
/p/app/ltrn/remt |
float32 | Lantern remaining time (s) |
/p/app/ltrn/colr |
rgb | Lantern color |
/p/app/ltrn/scpd |
bytes | Lantern scene / pattern data |
/p/app/led/pclr |
rgb | Primary LED color |
/u/app/ui/lbrt |
bytes | LED brightness (4× uint8) |
LED color writes are 8 bytes: r, g, b, 0, lumaAnim, 0, 0, 0 — byte 3 is 1 for
an animation table or 255 for none, and lumaAnim is PRESERVE 0 / STEADY 1 /
BREATHING 5 / RISING 6 / CIRCLING 7.
| path | type | meaning |
|---|---|---|
/u/app/ui/stlm |
u8 | Stealth mode |
/u/app/rdym/hc |
float32 | Ready-mode heat cycle (-1 = off) |
/u/app/lbws |
float32 | Low-battery warning SOC (%) |
Per-profile leaves live under /u/app/hc/<n>/<leaf> (the four saved profiles,
<n> = 0..3) and the current cycle under /p/app/thc/<leaf>:
| leaf | type | meaning |
|---|---|---|
name |
string | Profile name |
temp |
float32 | Target temp (C) |
time |
float32 | Duration (s) |
intn |
float32 | Intensity |
colr |
rgb | LED color |
scpd |
bytes | Scene / pattern data |
phcl |
bytes | Packed heat cycle |
btmp |
float32 | Boost temp (C) |
btim |
float32 | Boost time (s) |
This is what I've confirmed, not the whole tree. The app's own field spec carries roughly ~191 typed paths with read/write attributes, enum labels and firmware gates; folding that in is on the roadmap. If you decode a path that isn't here, drop it in Discussions.