summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-10-02Add soundbox.fromHardwareAddr()xegineering
This splits the soundbox.NewSoundbox() function into two smaller functions.
2024-10-02Use testing.Fatalf() to log in testsxegineering
Using testing.Errorf() does not stop the test. This was never wanted.
2024-10-02Add soundbox.toLinkLocal()xegineering
To communicate with soundbox devices it is required to convert the known device MAC address (printed on the case) to an IPv6 link-local address.
2024-10-02Add soundbox.Port constantxegineering
2024-10-02Link project page in README.mdxegineering
This gives a better overview of the existing repositories.
2024-10-02Change Go module name from `soundbox-go` to `soundbox`xegineering
Go modules should be named with a single word if possible (see the [standard libraray][1] as a reference example). Furthermore the module name will be present in the code very often and thus length is a critical point. The repository and project should still be named `soundbox-go` to distinguish it from the device repository [soundbox][2] and the application repository [soundbox-app][3]. [1]: https://pkg.go.dev/std [2]: https://cgit.xengineering.eu/soundbox [3]: https://cgit.xengineering.eu/soundbox-app
2024-10-01Make soundbox package top-levelxegineering
It is not expected that this library will be so big that multiple packages make sense. Thus it should start only with the main package.
2024-10-01Add go.modxegineering
This makes this repository a Go module.
2024-10-01Add minimal soundbox Go packagexegineering
This only adds the `Soundbox` struct type which has a `net.HardwareAddr` to identify it together with a constructor and a unit test.
2024-10-01Add Mozilla Public License version 2.0xegineering
2024-10-01Add README.md with project descriptionxegineering