Skip to content

extract CLI parser for host tests + sensor driver doc#70

Open
drmikecrypto wants to merge 1 commit into
angeloINTJ:mainfrom
drmikecrypto:cli-parser-tests-sensor-doc
Open

extract CLI parser for host tests + sensor driver doc#70
drmikecrypto wants to merge 1 commit into
angeloINTJ:mainfrom
drmikecrypto:cli-parser-tests-sensor-doc

Conversation

@drmikecrypto

Copy link
Copy Markdown

Closes the tutorial gap from #63 and adds host tests for #42.

what changed

  • parseCliCommand() extracted to CommandParser.cpp so pio test -e native_cli doesn't need Serial/BT/LittleFS
  • 22 parser tests: help variants, confirm suffix, user add/del, tel config, sensor field gpio parse, garbage lines
  • docs/adding-a-new-sensor.md — practical walkthrough for cold-chain / ag / lab deployments

why
USB CLI has zero auth. Parser regressions can brick config or wipe sensors. Tests catch the boring stuff.

verify

  • pio test -e native_cli (needs gcc — CI should be fine)
  • pio test -e native unchanged

Related: #42 #63

issue angeloINTJ#42 — USB serial has no auth; parser bugs are scary. pulled parseCliCommand() out of CommandManager so native tests don't need BT/Serial.

docs/adding-a-new-sensor.md for angeloINTJ#63 (tutorial was still on the checklist).

pio test -e native_cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant