Reorder ext IDs, add board ID to ResponseInfo, fix CRLF translation
This commit is contained in:
@@ -2,12 +2,13 @@ package client
|
||||
|
||||
import "github.com/theater/picomap/lib/msgpack"
|
||||
|
||||
type ResponsePICOBOOT struct{}
|
||||
type RequestPICOBOOT struct{}
|
||||
type ResponsePICOBOOT struct{}
|
||||
|
||||
type RequestInfo struct{}
|
||||
type ResponseInfo struct {
|
||||
MAC [6]byte
|
||||
BoardID [8]byte
|
||||
MAC [6]byte
|
||||
}
|
||||
|
||||
type DeviceError struct {
|
||||
@@ -27,9 +28,9 @@ type Envelope struct {
|
||||
|
||||
func init() {
|
||||
msgpack.RegisterExt(0, (*Envelope)(nil))
|
||||
msgpack.RegisterExt(1, (*ResponsePICOBOOT)(nil))
|
||||
msgpack.RegisterExt(1, (*DeviceError)(nil))
|
||||
msgpack.RegisterExt(2, (*RequestPICOBOOT)(nil))
|
||||
msgpack.RegisterExt(3, (*DeviceError)(nil))
|
||||
msgpack.RegisterExt(3, (*ResponsePICOBOOT)(nil))
|
||||
msgpack.RegisterExt(4, (*RequestInfo)(nil))
|
||||
msgpack.RegisterExt(5, (*ResponseInfo)(nil))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user