Build epoch in info, flash-status command, cmake version embedding
This commit is contained in:
@@ -132,6 +132,10 @@ func (c *Client) Reboot() error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *Client) FlashStatus() (*ResponseFlashStatus, error) {
|
||||
return first(roundTrip[ResponseFlashStatus](c, &RequestFlashStatus{}))
|
||||
}
|
||||
|
||||
func (c *Client) ListTests() (*ResponseListTests, error) {
|
||||
return first(roundTrip[ResponseListTests](c, &RequestListTests{}))
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ type ResponseInfo struct {
|
||||
IP [4]byte
|
||||
FirmwareName string
|
||||
Boot BootReason
|
||||
BuildEpoch uint32
|
||||
}
|
||||
|
||||
type RequestLog struct{}
|
||||
@@ -61,6 +62,12 @@ type ResponseFlashWrite struct{}
|
||||
type RequestReboot struct{}
|
||||
type ResponseReboot struct{}
|
||||
|
||||
type RequestFlashStatus struct{}
|
||||
type ResponseFlashStatus struct {
|
||||
BootPartition int8
|
||||
BootType uint8
|
||||
}
|
||||
|
||||
type RequestListTests struct{}
|
||||
type ResponseListTests struct {
|
||||
Names []string
|
||||
@@ -105,6 +112,8 @@ func init() {
|
||||
msgpack.RegisterExt(11, (*ResponseFlashWrite)(nil))
|
||||
msgpack.RegisterExt(12, (*RequestReboot)(nil))
|
||||
msgpack.RegisterExt(13, (*ResponseReboot)(nil))
|
||||
msgpack.RegisterExt(14, (*RequestFlashStatus)(nil))
|
||||
msgpack.RegisterExt(15, (*ResponseFlashStatus)(nil))
|
||||
msgpack.RegisterExt(125, (*RequestListTests)(nil))
|
||||
msgpack.RegisterExt(124, (*ResponseListTests)(nil))
|
||||
msgpack.RegisterExt(127, (*RequestTest)(nil))
|
||||
|
||||
Reference in New Issue
Block a user