Add RequestInfo/ResponseInfo with MAC address

This commit is contained in:
Ian Gulliver
2026-04-04 15:00:16 +09:00
parent 46af5becfe
commit d2b9a2e2aa
6 changed files with 67 additions and 0 deletions

View File

@@ -5,6 +5,11 @@ import "github.com/theater/picomap/lib/msgpack"
type ResponsePICOBOOT struct{}
type RequestPICOBOOT struct{}
type RequestInfo struct{}
type ResponseInfo struct {
MAC [6]byte
}
type DeviceError struct {
Code uint32
Message string
@@ -25,4 +30,6 @@ func init() {
msgpack.RegisterExt(1, (*ResponsePICOBOOT)(nil))
msgpack.RegisterExt(2, (*RequestPICOBOOT)(nil))
msgpack.RegisterExt(3, (*DeviceError)(nil))
msgpack.RegisterExt(4, (*RequestInfo)(nil))
msgpack.RegisterExt(5, (*ResponseInfo)(nil))
}