Versions in this module Expand all Collapse all v1 v1.0.2 Oct 3, 2023 v1.0.1 Oct 3, 2023 Changes in this version + const IMAGE_UPLOAD_CHUNK_ALIGNMENT + const IMAGE_UPLOAD_CHUNK_MISSED_WM + const IMAGE_UPLOAD_DEF_MAX_WS + const IMAGE_UPLOAD_MAX_CHUNK + const IMAGE_UPLOAD_MIN_1ST_CHUNK + const IMAGE_UPLOAD_START_WS + const IMAGE_UPLOAD_STATUS_EXPECTED + const IMAGE_UPLOAD_STATUS_MISSED + const IMAGE_UPLOAD_STATUS_RQ + var CrashTypeNameMap = map[CrashType]string + func CrashTypeNames() []string + func CrashTypeToString(ct CrashType) string + type Cmd interface + Abort func() error + Run func(s sesn.Sesn) (Result, error) + SetTxOptions func(opt sesn.TxOptions) + TxOptions func() sesn.TxOptions + type CmdBase struct + func NewCmdBase() CmdBase + func (c *CmdBase) Abort() error + func (c *CmdBase) SetTxOptions(opt sesn.TxOptions) + func (c *CmdBase) TxOptions() sesn.TxOptions + type ConfigReadCmd struct + Name string + func NewConfigReadCmd() *ConfigReadCmd + func (c *ConfigReadCmd) Run(s sesn.Sesn) (Result, error) + type ConfigReadResult struct + Rsp *nmp.ConfigReadRsp + func (r *ConfigReadResult) Status() int + type ConfigWriteCmd struct + Name string + Save bool + Val string + func NewConfigWriteCmd() *ConfigWriteCmd + func (c *ConfigWriteCmd) Run(s sesn.Sesn) (Result, error) + type ConfigWriteResult struct + Rsp *nmp.ConfigWriteRsp + func (r *ConfigWriteResult) Status() int + type CoreEraseCmd struct + func NewCoreEraseCmd() *CoreEraseCmd + func (c *CoreEraseCmd) Run(s sesn.Sesn) (Result, error) + type CoreEraseResult struct + Rsp *nmp.CoreEraseRsp + func (r *CoreEraseResult) Status() int + type CoreListCmd struct + func NewCoreListCmd() *CoreListCmd + func (c *CoreListCmd) Run(s sesn.Sesn) (Result, error) + type CoreListResult struct + Rsp *nmp.CoreListRsp + func (r *CoreListResult) Status() int + type CoreLoadCmd struct + ProgressCb CoreLoadProgressFn + func NewCoreLoadCmd() *CoreLoadCmd + func (c *CoreLoadCmd) Run(s sesn.Sesn) (Result, error) + type CoreLoadProgressFn func(c *CoreLoadCmd, r *nmp.CoreLoadRsp) + type CoreLoadResult struct + Rsps []*nmp.CoreLoadRsp + func (r *CoreLoadResult) Status() int + type CrashCmd struct + CrashType CrashType + func NewCrashCmd() *CrashCmd + func (c *CrashCmd) Run(s sesn.Sesn) (Result, error) + type CrashResult struct + Rsp *nmp.CrashRsp + func (r *CrashResult) Status() int + type CrashType int + const CRASH_TYPE_ASSERT + const CRASH_TYPE_DIV0 + const CRASH_TYPE_JUMP0 + const CRASH_TYPE_REF0 + const CRASH_TYPE_WDOG + func CrashTypeFromString(s string) (CrashType, error) + type DateTimeReadCmd struct + func NewDateTimeReadCmd() *DateTimeReadCmd + func (c *DateTimeReadCmd) Run(s sesn.Sesn) (Result, error) + type DateTimeReadResult struct + Rsp *nmp.DateTimeReadRsp + func (r *DateTimeReadResult) Status() int + type DateTimeWriteCmd struct + DateTime string + func NewDateTimeWriteCmd() *DateTimeWriteCmd + func (c *DateTimeWriteCmd) Run(s sesn.Sesn) (Result, error) + type DateTimeWriteResult struct + Rsp *nmp.DateTimeWriteRsp + func (r *DateTimeWriteResult) Status() int + type EchoCmd struct + Payload string + func NewEchoCmd() *EchoCmd + func (c *EchoCmd) Run(s sesn.Sesn) (Result, error) + type EchoResult struct + Rsp *nmp.EchoRsp + func (r *EchoResult) Status() int + type FsDownloadCmd struct + Name string + ProgressCb FsDownloadProgressCb + func NewFsDownloadCmd() *FsDownloadCmd + func (c *FsDownloadCmd) Run(s sesn.Sesn) (Result, error) + type FsDownloadProgressCb func(c *FsDownloadCmd, r *nmp.FsDownloadRsp) + type FsDownloadResult struct + Rsps []*nmp.FsDownloadRsp + func (r *FsDownloadResult) Status() int + type FsUploadCmd struct + Data []byte + Name string + ProgressCb FsUploadProgressCb + func NewFsUploadCmd() *FsUploadCmd + func (c *FsUploadCmd) Run(s sesn.Sesn) (Result, error) + type FsUploadProgressCb func(c *FsUploadCmd, r *nmp.FsUploadRsp) + type FsUploadResult struct + Rsps []*nmp.FsUploadRsp + func (r *FsUploadResult) Status() int + type ImageEraseCmd struct + func NewImageEraseCmd() *ImageEraseCmd + func (c *ImageEraseCmd) Run(s sesn.Sesn) (Result, error) + type ImageEraseResult struct + Rsp *nmp.ImageEraseRsp + func (r *ImageEraseResult) Status() int + type ImageStateReadCmd struct + func NewImageStateReadCmd() *ImageStateReadCmd + func (c *ImageStateReadCmd) Run(s sesn.Sesn) (Result, error) + type ImageStateReadResult struct + Rsp *nmp.ImageStateRsp + func (r *ImageStateReadResult) Status() int + type ImageStateWriteCmd struct + Confirm bool + Hash []byte + func NewImageStateWriteCmd() *ImageStateWriteCmd + func (c *ImageStateWriteCmd) Run(s sesn.Sesn) (Result, error) + type ImageStateWriteResult struct + Rsp *nmp.ImageStateRsp + func (r *ImageStateWriteResult) Status() int + type ImageUpgradeCmd struct + Data []byte + ImageNum int + LastOff uint32 + MaxWinSz int + NoErase bool + ProgressBar *pb.ProgressBar + ProgressCb ImageUploadProgressFn + Upgrade bool + func NewImageUpgradeCmd() *ImageUpgradeCmd + func (c *ImageUpgradeCmd) Run(s sesn.Sesn) (Result, error) + type ImageUpgradeResult struct + EraseRes *ImageEraseResult + UploadRes *ImageUploadResult + func (r *ImageUpgradeResult) Status() int + type ImageUploadCmd struct + Data []byte + ImageNum int + MaxWinSz int + ProgressCb ImageUploadProgressFn + StartOff int + Upgrade bool + func NewImageUploadCmd() *ImageUploadCmd + func (c *ImageUploadCmd) Run(s sesn.Sesn) (Result, error) + type ImageUploadIntTracker struct + MaxRxOff int32 + Mutex sync.Mutex + Off int + RspMap map[int]int + TuneWS bool + WCap int + WCount int + func (t *ImageUploadIntTracker) CheckWindow() bool + func (t *ImageUploadIntTracker) HandleError(off int, err error) bool + func (t *ImageUploadIntTracker) HandleResponse(c *ImageUploadCmd, rsp nmp.NmpRsp, res *ImageUploadResult) bool + func (t *ImageUploadIntTracker) ProcessMissedChunks() + func (t *ImageUploadIntTracker) UpdateTracker(off int, status int) + type ImageUploadProgressFn func(c *ImageUploadCmd, r *nmp.ImageUploadRsp) + type ImageUploadResult struct + Rsps []*nmp.ImageUploadRsp + func (r *ImageUploadResult) Status() int + type LogClearCmd struct + func NewLogClearCmd() *LogClearCmd + func (c *LogClearCmd) Run(s sesn.Sesn) (Result, error) + type LogClearResult struct + Rsp *nmp.LogClearRsp + func (r *LogClearResult) Status() int + type LogLevelListCmd struct + func NewLogLevelListCmd() *LogLevelListCmd + func (c *LogLevelListCmd) Run(s sesn.Sesn) (Result, error) + type LogLevelListResult struct + Rsp *nmp.LogLevelListRsp + func (r *LogLevelListResult) Status() int + type LogListCmd struct + func NewLogListCmd() *LogListCmd + func (c *LogListCmd) Run(s sesn.Sesn) (Result, error) + type LogListResult struct + Rsp *nmp.LogListRsp + func (r *LogListResult) Status() int + type LogModuleListCmd struct + func NewLogModuleListCmd() *LogModuleListCmd + func (c *LogModuleListCmd) Run(s sesn.Sesn) (Result, error) + type LogModuleListResult struct + Rsp *nmp.LogModuleListRsp + func (r *LogModuleListResult) Status() int + type LogShowCmd struct + Index uint32 + Name string + Timestamp int64 + func NewLogShowCmd() *LogShowCmd + func (c *LogShowCmd) Run(s sesn.Sesn) (Result, error) + type LogShowFullCmd struct + Index uint32 + Name string + ProgressCb LogShowFullProgressFn + func NewLogShowFullCmd() *LogShowFullCmd + func (c *LogShowFullCmd) Run(s sesn.Sesn) (Result, error) + type LogShowFullProgressFn func(c *LogShowFullCmd, r *nmp.LogShowRsp) + type LogShowFullResult struct + Rsps []*nmp.LogShowRsp + func (r *LogShowFullResult) Status() int + type LogShowResult struct + Rsp *nmp.LogShowRsp + func (r *LogShowResult) Status() int + type MempoolStatCmd struct + func NewMempoolStatCmd() *MempoolStatCmd + func (c *MempoolStatCmd) Run(s sesn.Sesn) (Result, error) + type MempoolStatResult struct + Rsp *nmp.MempoolStatRsp + func (r *MempoolStatResult) Status() int + type ResCmd struct + MsgParams nmcoap.MsgParams + func NewResCmd() *ResCmd + func (c *ResCmd) Run(s sesn.Sesn) (Result, error) + type ResNoRxCmd struct + MsgParams nmcoap.MsgParams + func NewResNoRxCmd() *ResNoRxCmd + func (c *ResNoRxCmd) Run(s sesn.Sesn) (Result, error) + type ResNoRxResult struct + func (r *ResNoRxResult) Status() int + type ResResult struct + Rsp coap.Message + func (r *ResResult) Status() int + type ResetCmd struct + Payload string + func NewResetCmd() *ResetCmd + func (c *ResetCmd) Run(s sesn.Sesn) (Result, error) + type ResetResult struct + Rsp *nmp.ResetRsp + func (r *ResetResult) Status() int + type Result interface + Status func() int + type RunListCmd struct + func NewRunListCmd() *RunListCmd + func (c *RunListCmd) Run(s sesn.Sesn) (Result, error) + type RunListResult struct + Rsp *nmp.RunListRsp + func (r *RunListResult) Status() int + type RunTestCmd struct + Testname string + Token string + func NewRunTestCmd() *RunTestCmd + func (c *RunTestCmd) Run(s sesn.Sesn) (Result, error) + type RunTestResult struct + Rsp *nmp.RunTestRsp + func (r *RunTestResult) Status() int + type ShellExecCmd struct + Argv []string + func NewShellExecCmd() *ShellExecCmd + func (c *ShellExecCmd) Run(s sesn.Sesn) (Result, error) + type ShellExecResult struct + Rsp *nmp.ShellExecRsp + func (r *ShellExecResult) Status() int + type StatListCmd struct + func NewStatListCmd() *StatListCmd + func (c *StatListCmd) Run(s sesn.Sesn) (Result, error) + type StatListResult struct + Rsp *nmp.StatListRsp + func (r *StatListResult) Status() int + type StatReadCmd struct + Name string + func NewStatReadCmd() *StatReadCmd + func (c *StatReadCmd) Run(s sesn.Sesn) (Result, error) + type StatReadResult struct + Rsp *nmp.StatReadRsp + func (r *StatReadResult) Status() int + type TaskStatCmd struct + func NewTaskStatCmd() *TaskStatCmd + func (c *TaskStatCmd) Run(s sesn.Sesn) (Result, error) + type TaskStatResult struct + Rsp *nmp.TaskStatRsp + func (r *TaskStatResult) Status() int