透過集合功能整理內容 你可以依據偏好儲存及分類內容。

NL::編織::簡介::設備描述::文本描述符編寫器

概括

構造函數和析構函數

TextDescriptorWriter (char *buf, uint32_t bufSize)

公共職能

Finalize ()
GetLengthWritten ()
uint32_t
WriteDate (char fieldId, uint16_t year, uint8_t month, uint8_t day)
WriteHex (char fieldId, uint16_t val)
WriteHex (char fieldId, const uint8_t *val, uint32_t valLen)
WriteString (char fieldId, const char *val)
WriteVersion ()

公共職能

敲定

WEAVE_ERROR Finalize()

獲取長度寫入

uint32_t GetLengthWritten()

文本描述符編寫器

 TextDescriptorWriter(
  char *buf,
  uint32_t bufSize
)

寫入日期

WEAVE_ERROR WriteDate(
  char fieldId,
  uint16_t year,
  uint8_t month,
  uint8_t day
)

寫十六進制

WEAVE_ERROR WriteHex(
  char fieldId,
  uint16_t val
)

寫十六進制

WEAVE_ERROR WriteHex(
  char fieldId,
  const uint8_t *val,
  uint32_t valLen
)

寫字符串

WEAVE_ERROR WriteString(
  char fieldId,
  const char *val
)

寫版本

WEAVE_ERROR WriteVersion()