b38f7f643b
Parse filanfc-dump/v1 zip/JSON, Bambu 1K images, and merge stickers by tray UID. dump and mifare packages stay importable for a later common library.
22 lines
523 B
Markdown
22 lines
523 B
Markdown
# bambu-nfc
|
|
|
|
Go library for Bambu Lab filament NFC dumps produced by the Filament NFC dump Android app.
|
|
|
|
```go
|
|
import bambunfc "git.s1d3sw1ped.com/s1d3sw1ped/bambu-nfc"
|
|
|
|
tags, err := bambunfc.ParseZip(r)
|
|
spools, err := bambunfc.Merge(tags)
|
|
keys, err := bambunfc.KeysA(uid)
|
|
```
|
|
|
|
- `dump` — brand-blind `filanfc-dump/v1` JSON/zip
|
|
- `mifare` — Classic 1K layout helpers
|
|
- root package — Bambu Key-A HKDF, block parse, merge by `tray_uid`
|
|
|
|
`Brand` is `"Bambu Lab"` on a successful parse.
|
|
|
|
```bash
|
|
go test -race ./...
|
|
```
|