Commit Graph

10 Commits

Author SHA1 Message Date
b24513fcc3 feat: add CLI with Cobra and timestamped logging
Introduce structured CLI argument parsing using Cobra with three
configurable flags:
  --vendor: USB vendor ID (default: 0x0fcf)
  --product: USB product ID (default: 0x1008)
  --device: ANT+ device number (default: 3001)

Add timestamped logging for all log statements with format
YYYY-MM-DD HH:MM:SS. Log vendor, product, and device values at
startup in both hex and decimal.

Remove hardcoded USB identifiers from main.go and consolidate all
startup logic into cli.go with a dedicated Config struct.

Update ant.go ListenForTrainer signature to accept uint16 for
vendor and product IDs.
2026-05-27 00:36:06 +02:00
39b5a95eb4 logging with date time format. 2026-05-27 00:36:06 +02:00
29d7dc1632 Fully functional ant+ to bluetooth bridge. 2026-05-27 00:36:06 +02:00
eb6fdd6b16 moved bluetooth function over to separate file 2026-05-27 00:36:06 +02:00
10d8f6bb97 improved bluetooth loop 2026-05-27 00:36:06 +02:00
b5b3610b70 bluetooth with fake data. 2026-05-27 00:36:06 +02:00
0a48932baa seprating the ant+ code out. 2026-05-27 00:36:06 +02:00
e9dd5bbc99 a bit more robust. 2026-05-27 00:36:06 +02:00
2bbca6f082 initial version. 2026-05-27 00:36:06 +02:00
c37fde8cf6 Initial commit 2026-05-25 11:00:13 +02:00