Sniffer: property record store, memory caps and text sensor rewrite
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- cpp
- Ambito
- embedded-iot, testing-qa
Direzione di ricerca
Start with the linked .specs/sniffer.md sections for property records, memory caps, text sensor, and configuration, then inspect sec_touch_sniffer.h and the hub frame buffer to check the specified limits. The issue names no test file; use the GoogleTest harness from #39 for the record store, history pool, text sensor builder, and config cases. Done means acceptance criteria 1–6 and 9 pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Spec: Property records, Memory caps, Text sensor, Configuration
- Store: 256 slots indexed by ID (fields block ~6 KB + raw block 256 × 48 B), u32 uptime seconds, change and query status rules. IDs above 255 are dropped and counted.
- History pool: 2 KB of variable-length previous values, depth 8 per ID, evicts from the ID with the most entries. Allocated only with
web_page: true. static_assertties the 48 B raw cap to the hub's frame buffer.- Text sensor:
id=rawfor unregistered records with a raw value, 2048 cap with, …+N more, built in a heap string. Removetime/RTC use. - Config errors: non-ESP32 target,
time_id,scan_end > 255. Add theweb_pageboolean (no effect yet). - Drop the stale memory comments in
sec_touch_sniffer.h.
Done: acceptance criteria 1–6 and 9 in the spec.
Tests (harness from #39): host GoogleTest for the record store (change rules, failures, IDs above 255), the history pool (depth, eviction from the ID with the most entries) and the text sensor builder (selection, 2048 cap, marker). Config tests for non-ESP32, time_id and scan_end > 255.
- Lingua principale
- C++
- Stelle
- 8
- Fork
- 4
- Merge medio
- 15h 58m
- PR unite (30g)
- 5
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di distante/esphome-components
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Sniffer: hub message tap with raw strings and scan outcomeForse già presa @distante l’ha presa oggi. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 53/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Sniffer: HTML pageAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
Tutte le issue di distante/esphome-components
Issue simili
-
Needs: Author Feedback Needs: Repro
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
react/react-native#60059 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
petercorke/robotics-toolbox-python#943 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area:build bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
NatronGitHub/openfx-arena#71 ·
I maintainer di solito rispondono entro 1 giorno
-
upstream-blocked
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ROCm/FastFlowLM#1057 ·
I maintainer di solito rispondono entro 1 giorno