nl

Weave के लिए nlelsert.h ओवरराइड.

खास जानकारी

गिनती

@357 enum
@358 enum
@359 enum
@360 enum
@361 enum
SerializedFieldType{
  SerializedFieldTypeBoolean = 0x00,
  SerializedFieldTypeUInt8,
  SerializedFieldTypeUInt16,
  SerializedFieldTypeUInt32,
  SerializedFieldTypeUInt64,
  SerializedFieldTypeInt8,
  SerializedFieldTypeInt16,
  SerializedFieldTypeInt32,
  SerializedFieldTypeInt64,
  SerializedFieldTypeFloatingPoint32,
  SerializedFieldTypeFloatingPoint64,
  SerializedFieldTypeUTF8String,
  SerializedFieldTypeByteString,
  SerializedFieldTypeStructure,
  SerializedFieldTypeArray
}
enum
TLV फ़ील्ड के साथ लिखने के लिए TLV प्रकार की एक सूची.
SerializedFieldTypeBits enum
SerializedFieldType का बिटफ़ील्ड.
SerializedFieldTypeMasks enum
SerializedFieldType के बिट ऐक्सेस करने के लिए मास्क.

टाइपडेफ़

Base64CharToValFunct)(uint8_t c) टाइपडेफ़
uint8_t(*
Base64ValToCharFunct)(uint8_t val) टाइपडेफ़
char(*
MemoryAllocate)(size_t size) टाइपडेफ़
void *(*
मेमोरी आवंटन/मुफ़्त फ़ंक्शन पॉइंटर.
MemoryFree)(void *ptr) टाइपडेफ़
void(*
MemoryReallocate)(void *ptr, size_t size) टाइपडेफ़
void *(*

वैरिएबल

sASN1ErrorFormatter = { nl::Weave::ASN1::FormatASN1Error, NULL }
sElementSize = { sizeof(bool), sizeof(uint8_t), sizeof(uint16_t), sizeof(uint32_t), sizeof(uint64_t), sizeof(int8_t), sizeof(int16_t), sizeof(int32_t), sizeof(int64_t), sizeof(float), sizeof(double), sizeof(char *), sizeof(SerializedByteString), sizeof(void *), sizeof(void *) }[]
const uint8_t
sErrorFormatterList = &sWeaveErrorFormatter
const ErrorFormatter *
गड़बड़ी फ़ॉर्मैट करने वाले फ़ंक्शन की लिंक की गई सूची.
sErrorStr[WEAVE_CONFIG_ERROR_STR_SIZE]
char
फ़ॉर्मैट की गई गड़बड़ी वाली स्ट्रिंग को सेव करने के लिए स्टैटिक बफ़र.
sErrorStr[1024]
char
यह रूटीन, NULL-टर्मिनेटेड C स्ट्रिंग दिखाता है, जिसे मैन्युअल तौर पर पढ़ा जा सकता है. इस स्ट्रिंग में, खास जानकारी वाली प्रोफ़ाइल से जुड़े स्टेटस कोड के बारे में बताया जाता है.
sWeaveErrorFormatter = { nl::Weave::FormatWeaveError, &sASN1ErrorFormatter }

फ़ंक्शन

AdjustCalendarDate(uint16_t & year, uint8_t & month, uint8_t & dayOfMonth, int32_t relativeDays)
void
Base64CharToVal(uint8_t c)
uint8_t
Base64Decode(const char *in, uint16_t inLen, uint8_t *out, Base64CharToValFunct charToValFunct)
uint16_t
Base64Decode(const char *in, uint16_t inLen, uint8_t *out)
uint16_t
Base64Decode32(const char *in, uint32_t inLen, uint8_t *out, Base64CharToValFunct charToValFunct)
uint32_t
Base64Decode32(const char *in, uint32_t inLen, uint8_t *out)
uint32_t
Base64Encode(const uint8_t *in, uint16_t inLen, char *out, Base64ValToCharFunct valToCharFunct)
uint16_t
Base64Encode(const uint8_t *in, uint16_t inLen, char *out)
uint16_t
Base64Encode32(const uint8_t *in, uint32_t inLen, char *out, Base64ValToCharFunct valToCharFunct)
uint32_t
Base64Encode32(const uint8_t *in, uint32_t inLen, char *out)
uint32_t
Base64URLCharToVal(uint8_t c)
uint8_t
Base64URLDecode(const char *in, uint16_t inLen, uint8_t *out)
uint16_t
Base64URLEncode(const uint8_t *in, uint16_t inLen, char *out)
uint16_t
Base64URLValToChar(uint8_t val)
char
Base64ValToChar(uint8_t val)
char
CalendarDateToDaysSinceEpoch(uint16_t year, uint8_t month, uint8_t dayOfMonth, uint32_t & daysSinceEpoch)
bool
CalendarDateToOrdinalDate(uint16_t year, uint8_t month, uint8_t dayOfMonth, uint16_t & dayOfYear)
void
CalendarTimeToSecondsSinceEpoch(uint16_t year, uint8_t month, uint8_t dayOfMonth, uint8_t hour, uint8_t minute, uint8_t second, uint32_t & secondsSinceEpoch)
bool
ClearFlag(FlagsT & inFlags, const FlagT inFlag)
void
DateToManufacturingWeek(uint16_t year, uint8_t month, uint8_t day, uint16_t & mfgYear, uint8_t & mfgWeek)
void
DaysInMonth(uint16_t year, uint8_t month)
uint8_t
DaysSinceEpochToCalendarDate(uint32_t daysSinceEpoch, uint16_t & year, uint8_t & month, uint8_t & dayOfMonth)
void
DaysToMarch1(uint16_t year)
uint8_t
DeallocateDeserializedStructure(void *aStructureData, const SchemaFieldDescriptor *aFieldDescriptors, SerializationContext *aContext)
ErrorStr(int32_t err)
NL_DLL_EXPORT const char *
इस रूटीन से, दी गई गड़बड़ी के बारे में जानकारी देने वाली NULL-टर्मिनेटेड C स्ट्रिंग मिलती है, जिसे आसानी से पढ़ा जा सकता है.
ExtractManufacturingDateFromSerialNumber(const char *serialNum, uint16_t & year, uint8_t & month, uint8_t & day)
FindNullifiedFieldsArray(void *aStructureData, const SchemaFieldDescriptor *aSchemaDescriptor, uint8_t *& aNullifiedFields)
C स्ट्रक्चर के आखिर में शून्य शून्य फ़ील्ड की जगह की जगह पता करने के लिए हेल्पर फ़ंक्शन.
FindStatusReportStr(uint32_t inProfileId, uint16_t inStatusCode)
const char *
FirstWeekdayOfYear(uint16_t year)
uint8_t
FormatError(char *buf, uint16_t bufSize, const char *subsys, int32_t err, const char *desc)
void
दी गई गड़बड़ी के बारे में बताने वाली, NULL (टर्मिनल) स्ट्रिंग की स्ट्रिंग देता है.
GetArrayElementSize(uint32_t & aOutSize, const FieldDescriptor *aFieldPtr, SerializedFieldType aType)
GetFlag(const FlagsT & inFlags, const FlagT inFlag)
bool
IsBase34NoIOChar(char ch)
bool
IsLeapYear(uint16_t year)
bool
IsValidFieldType(SerializedFieldType aType)
bool
IsValidSerialNumber(const char *serialNum)
bool
LogEvent(TEvent *aEvent)
nl::Weave::Profiles::DataManagement::event_id_t
LogEvent(TEvent *aEvent, const nl::Weave::Profiles::DataManagement::EventOptions & aOptions)
nl::Weave::Profiles::DataManagement::event_id_t
ManufacturingWeekToDate(uint16_t mfgYear, uint8_t mfgWeek, uint16_t & year, uint8_t & month, uint8_t & day)
void
MarchBasedDayOfYearToMonth(uint16_t dayOfYear)
uint8_t
MarchBasedMonthToDayOfYear(uint8_t month)
uint16_t
NullifyAllEventFields(TEvent *aEvent)
void
OrdinalDateToCalendarDate(uint16_t year, uint16_t dayOfYear, uint8_t & month, uint8_t & dayOfMonth)
void
ReadDataForType(TLVReader & aReader, void *aStructureData, const FieldDescriptor *& aFieldPtr, SerializedFieldType aType, bool aInArray, SerializationContext *aContext)
स्ट्रक्चर्ड डेटा के आधार पर, TLV से कोई खास एंट्री पढ़ने का रीडर फ़ंक्शन.
ReadNullableDataForType(TLVReader & aReader, void *aStructureData, const FieldDescriptor *& aFieldPtr, SerializedFieldType aType, bool & aIsNullified, SerializationContext *aContext)
TLV से पढ़ने से पहले, डेटा की वैल्यू शून्य या शून्य है या नहीं, यह देखने के लिए रीडर फ़ंक्शन.
RegisterErrorFormatter(ErrorFormatter *errFormatter)
NL_DLL_EXPORT void
गड़बड़ी फ़ॉर्मैट करने वाले प्रोग्राम की ग्लोबल सूची में, गड़बड़ी को फ़ॉर्मैट करने वाला नया फ़ंक्शन जोड़ें.
SecondsSinceEpochToCalendarTime(uint32_t secondsSinceEpoch, uint16_t & year, uint8_t & month, uint8_t & dayOfMonth, uint8_t & hour, uint8_t & minute, uint8_t & second)
void
SerializedDataToTLVWriter(TLVWriter & aWriter, void *aStructureData, const SchemaFieldDescriptor *aFieldDescriptors)
किसी डेटा स्ट्रक्चर को TLV स्ट्रक्चर में बदलने के लिए एक लेखक फ़ंक्शन.
SerializedDataToTLVWriterHelper(TLVWriter & aWriter, uint8_t aDataTag, void *aAppData)
रैपर लेखक फ़ंक्शन जो SerializedDataToTLVr को कंटेनर के साथ रखता है.
SetFlag(FlagsT & inFlags, const FlagT inFlag)
void
SetFlag(FlagsT & inFlags, const FlagT inFlag, const bool inValue)
void
StatusReportStr(uint32_t profileId, uint16_t statusCode)
const char *
TLVReaderToDeserializedData(nl::Weave::TLV::TLVReader & aReader, void *aStructureData, const SchemaFieldDescriptor *aFieldDescriptors, SerializationContext *aContext)
TLV को C-स्ट्रक्चर्ड में बदलने के लिए एक रीडर फ़ंक्शन.
TLVReaderToDeserializedDataHelper(nl::Weave::TLV::TLVReader & aReader, uint8_t aDataTag, void *aAppData, SerializationContext *aContext)
एक हेल्पर फ़ंक्शन, जो एक TLV डेटा एलिमेंट को हटाता है.
WriteArrayData(TLVWriter & aWriter, void *aStructureData, const FieldDescriptor *aFieldPtr)
कैटगरी बनाने वाला लेखक फ़ंक्शन.
WriteDataForType(TLVWriter & aWriter, void *aStructureData, const FieldDescriptor *& aFieldPtr, SerializedFieldType aType, bool aInArray)
एक लेखक फ़ंक्शन, स्ट्रक्चर्ड डेटा के आधार पर TLV में एक खास एंट्री लिखता है.
WriteNullableDataForType(TLVWriter & aWriter, void *aStructureData, const FieldDescriptor *& aFieldPtr, SerializedFieldType aType, bool aIsNullified)
TLV पर लिखने से पहले, यह देखने के लिए एक लेखक फ़ंक्शन कि डेटा शून्य हो सकता है या नहीं.
secondsToMilliseconds(uint32_t seconds)
uint32_t

स्ट्रक्चर

nl::ArrayLengthAndBuffer

सारणी को लंबाई से रैप करने का सहायक.

nl::गड़बड़ी फ़ॉर्मैट करने वाला
nl::फ़ील्डडेस्क्रिप्टर

वह स्ट्रक्चर जो किसी स्कीमा की TLV फ़ील्ड का ब्यौरा देता है और उसे c-स्ट्रक्ट में डेटा से कनेक्ट करता है.

nl::मेमोरी मैनेजमेंट

मेमोरी के बंटवारे/मुफ़्त में मिलने वाले फ़ंक्शन का c-स्ट्रक्चर.

nl::SchemaFieldDescriptor

स्कीमा स्ट्रक्चर/स्ट्रक्चर के बारे में बताने के लिए फ़ील्ड डीस्क्रिप्टर की श्रेणी के मुताबिक रैपर.

nl::सीरियलाइज़ेशनकॉन्टेक्स्ट

यह एक c-स्ट्रक्चर है जिसमें सीरियल नंबर या सीरियल नंबर हटाने के लिए हमें कोई भी संदर्भ या स्थिति शामिल होती है.

nl::SerializedByteString
nl::SerializedFieldTypeBoolean_array
nl::SerializedFieldTypeByteString_array
nl::SerializedFieldTypeFloatingPoint32_array
nl::SerializedFieldTypeFloatingPoint64_array
nl::SerializedFieldTypeInt16_array
nl::SerializedFieldTypeInt32_array
nl::SerializedFieldTypeInt64_array
nl::SerializedFieldTypeInt8_array
nl::SerializedFieldTypeUInt16_array
nl::SerializedFieldTypeUInt32_array
nl::SerializedFieldTypeUInt64_array
nl::SerializedFieldTypeUInt8_array
nl::SerializedFieldTypeUTF8String_array
nl::संरचना स्कीमापॉइंटर पेयर

डेटा के c-स्ट्रक्चर और StructureSchemaDescriptor के साथ डेटा का जोड़ा, उस डेटा के आधार पर TLV संरचना लिखने के लिए.

नेमस्पेस

nl::ArgParser
nl::बेल

इस नेमस्पेस में, ब्लूटूथ कम ऊर्जा (BLE) वाले Weave के सभी इंटरफ़ेस शामिल हैं. इसे ब्लूटूथ स्मार्ट भी कहा जाता है.

nl::इंटरनेट
nl::NestCerts

इस नेमस्पेस में Nest Weave सार्वजनिक कुंजी इन्फ़्रास्ट्रक्चर (PKI) सर्टिफ़िकेट के लिए ग्लोबल सिंबल शामिल हैं.

nl::पेयरिंग कोड
nl::वॉर्म
nl::वेव क्लास

गिनती

@357

 @357

@358

 @358

@35

 @359

@360

 @360

@361

 @361

सीरियल फ़ील्ड का फ़ील्ड टाइप

 SerializedFieldType

TLV फ़ील्ड के साथ लिखने के लिए TLV प्रकार की एक सूची.

प्रॉपर्टी
SerializedFieldTypeArray

श्रेणी किस तरह की है.

SerializedFieldTypeBoolean

बूलियन टाइप.

SerializedFieldTypeByteString

बाइट स्ट्रिंग का टाइप.

SerializedFieldTypeFloatingPoint32

32-बिट वाला फ़्लोट टाइप

SerializedFieldTypeFloatingPoint64

64-बिट फ़्लोट

SerializedFieldTypeInt16

साइन किया गया 16-बिट टाइप.

SerializedFieldTypeInt32

साइन किया गया 32-बिट टाइप.

SerializedFieldTypeInt64

साइन किया गया 64-बिट टाइप.

SerializedFieldTypeInt8

साइन किया गया 8-बिट टाइप.

SerializedFieldTypeStructure

उपयोगकर्ता के तय किए गए स्ट्रक्चर का टाइप.

SerializedFieldTypeUInt16

साइन न किया गया 16-बिट टाइप.

SerializedFieldTypeUInt32

साइन नहीं किया गया 32-बिट टाइप.

SerializedFieldTypeUInt64

साइन न किया गया 64-बिट टाइप

SerializedFieldTypeUInt8

साइन न किया गया 8-बिट टाइप.

SerializedFieldTypeUTF8String

UTF-8 स्ट्रिंग टाइप.

सीरियल फ़ील्ड फ़ील्ड टाइप बिट

 SerializedFieldTypeBits

SerializedFieldType का बिटफ़ील्ड.

सीरियल फ़ील्ड फ़ील्ड टाइप मास्क

 SerializedFieldTypeMasks

SerializedFieldType के बिट ऐक्सेस करने के लिए मास्क.

टाइपडेफ़

Base64CharToValFunct

uint8_t(* Base64CharToValFunct)(uint8_t c)

Base64ValToCharFunct

char(* Base64ValToCharFunct)(uint8_t val)

मेमोरी आवंटित

void *(* MemoryAllocate)(size_t size)

मेमोरी आवंटन/मुफ़्त फ़ंक्शन पॉइंटर.

मेमोरीफ़्री

void(* MemoryFree)(void *ptr)

मेमोरी रीयललोकेशन

void *(* MemoryReallocate)(void *ptr, size_t size)

वैरिएबल

SASN1Errorformater

const ErrorFormatter sASN1ErrorFormatter =
{
    nl::Weave::ASN1::FormatASN1Error,
    NULL
}

एलिमेंट के आकार

const uint8_t sElementSize[] =
{
    sizeof(bool),                   
    sizeof(uint8_t),                
    sizeof(uint16_t),               
    sizeof(uint32_t),               
    sizeof(uint64_t),               
    sizeof(int8_t),                 
    sizeof(int16_t),                
    sizeof(int32_t),                
    sizeof(int64_t),                
    sizeof(float),                  
    sizeof(double),                 
    sizeof(char *),                 
    sizeof(SerializedByteString),   
    sizeof(void *),                 
    sizeof(void *)                  
}

SErrorformatterList

const ErrorFormatter * sErrorFormatterList = &sWeaveErrorFormatter

गड़बड़ी फ़ॉर्मैट करने वाले फ़ंक्शन की लिंक की गई सूची.

गड़बड़ी गड़बड़ी

char sErrorStr[WEAVE_CONFIG_ERROR_STR_SIZE]

फ़ॉर्मैट की गई गड़बड़ी वाली स्ट्रिंग को सेव करने के लिए स्टैटिक बफ़र.

गड़बड़ी गड़बड़ी

char sErrorStr[1024]

यह रूटीन, NULL-टर्मिनेटेड C स्ट्रिंग दिखाता है, जिसे मैन्युअल तौर पर पढ़ा जा सकता है. इस स्ट्रिंग में, खास जानकारी वाली प्रोफ़ाइल से जुड़े स्टेटस कोड के बारे में बताया जाता है.

ब्यौरा
पैरामीटर
[in] profileId
Weave प्रोफ़ाइल पहचानकर्ता .
[in] statusCode
जानकारी देने वाली स्ट्रिंग देने के लिए, profileId में स्टेटस कोड.
लौटाए गए सामान
तय की गई प्रोफ़ाइल में मौजूद स्टेटस कोड की जानकारी देने वाले, NULL-टर्मिनेटेड C स्ट्रिंग का पॉइंटर.
यह भी देखें:
WEAVE_CONFIG_SHORT_ERROR_STR

SWeaveErrorformater

const ErrorFormatter sWeaveErrorFormatter =
{
    nl::Weave::FormatWeaveError,
    &sASN1ErrorFormatter
}

फ़ंक्शन

CalendarDate में बदलाव करना

void AdjustCalendarDate(
  uint16_t & year,
  uint8_t & month,
  uint8_t & dayOfMonth,
  int32_t relativeDays
)

बेस64केफ़रटोवल

uint8_t Base64CharToVal(
  uint8_t c
)

Base64डिकोड

uint16_t Base64Decode(
  const char *in,
  uint16_t inLen,
  uint8_t *out,
  Base64CharToValFunct charToValFunct
)

Base64डिकोड

uint16_t Base64Decode(
  const char *in,
  uint16_t inLen,
  uint8_t *out
)

Base64Decode32

uint32_t Base64Decode32(
  const char *in,
  uint32_t inLen,
  uint8_t *out,
  Base64CharToValFunct charToValFunct
)

Base64Decode32

uint32_t Base64Decode32(
  const char *in,
  uint32_t inLen,
  uint8_t *out
)

Base64Encode

uint16_t Base64Encode(
  const uint8_t *in,
  uint16_t inLen,
  char *out,
  Base64ValToCharFunct valToCharFunct
)

Base64Encode

uint16_t Base64Encode(
  const uint8_t *in,
  uint16_t inLen,
  char *out
)

Base64Encode32

uint32_t Base64Encode32(
  const uint8_t *in,
  uint32_t inLen,
  char *out,
  Base64ValToCharFunct valToCharFunct
)

Base64Encode32

uint32_t Base64Encode32(
  const uint8_t *in,
  uint32_t inLen,
  char *out
)

Base64URLCharToVal

uint8_t Base64URLCharToVal(
  uint8_t c
)

Base64URLडिकोड

uint16_t Base64URLDecode(
  const char *in,
  uint16_t inLen,
  uint8_t *out
)

Base64URLEncode

uint16_t Base64URLEncode(
  const uint8_t *in,
  uint16_t inLen,
  char *out
)

Base64URLValToChar

char Base64URLValToChar(
  uint8_t val
)

Base64ValToChar

char Base64ValToChar(
  uint8_t val
)

कैलेंडर की तारीख से दिन का Epoch

bool CalendarDateToDaysSinceEpoch(
  uint16_t year,
  uint8_t month,
  uint8_t dayOfMonth,
  uint32_t & daysSinceEpoch
)

कैलेंडर तारीख प्रति-तारीख

void CalendarDateToOrdinalDate(
  uint16_t year,
  uint8_t month,
  uint8_t dayOfMonth,
  uint16_t & dayOfYear
)

कैलेंडर का समय से सेकंड के बाद से

bool CalendarTimeToSecondsSinceEpoch(
  uint16_t year,
  uint8_t month,
  uint8_t dayOfMonth,
  uint8_t hour,
  uint8_t minute,
  uint8_t second,
  uint32_t & secondsSinceEpoch
)

झंडे हटाएं

void ClearFlag(
  FlagsT & inFlags,
  const FlagT inFlag
)

तारीख से मैन्युफ़ैक्चरिंग वीक

void DateToManufacturingWeek(
  uint16_t year,
  uint8_t month,
  uint8_t day,
  uint16_t & mfgYear,
  uint8_t & mfgWeek
)

महीने में दिन

uint8_t DaysInMonth(
  uint16_t year,
  uint8_t month
)

दिन से लेकर EpochToCalendarDate

void DaysSinceEpochToCalendarDate(
  uint32_t daysSinceEpoch,
  uint16_t & year,
  uint8_t & month,
  uint8_t & dayOfMonth
)

दिन से मार्च1

uint8_t DaysToMarch1(
  uint16_t year
)

DEबनाएं

WEAVE_ERROR DeallocateDeserializedStructure(
  void *aStructureData,
  const SchemaFieldDescriptor *aFieldDescriptors,
  SerializationContext *aContext
)

गड़बड़ी

NL_DLL_EXPORT const char * ErrorStr(
  int32_t err
)

इस रूटीन से, दी गई गड़बड़ी के बारे में जानकारी देने वाली NULL-टर्मिनेटेड C स्ट्रिंग मिलती है, जिसे आसानी से पढ़ा जा सकता है.

ब्यौरा
पैरामीटर
[in] err
फ़ॉर्मैट और जानकारी के लिए गड़बड़ी.
लौटाए गए सामान
दी गई गड़बड़ी के बारे में बताने वाले NULL-टर्मिनेटेड C स्ट्रिंग का पॉइंटर.

एक्स्ट्रैक्ट मैन्युफ़ैक्चरिंग की तारीख की क्रम संख्या

WEAVE_ERROR ExtractManufacturingDateFromSerialNumber(
  const char *serialNum,
  uint16_t & year,
  uint8_t & month,
  uint8_t & day
)

FindNullifiedFieldsArray

WEAVE_ERROR FindNullifiedFieldsArray(
  void *aStructureData,
  const SchemaFieldDescriptor *aSchemaDescriptor,
  uint8_t *& aNullifiedFields
)

C स्ट्रक्चर के आखिर में शून्य शून्य फ़ील्ड की जगह की जगह पता करने के लिए हेल्पर फ़ंक्शन.

फ़ील्ड के ब्यौरे की श्रेणी के बारे में बताए गए आखिरी सदस्य के बाद, C स्ट्रक्चर के nullified_fields सदस्य के सीधे तौर पर मौजूद होने की उम्मीद है. यह फ़ील्ड डिस्क्रिप्टर की सूची में नहीं है, क्योंकि यह शून्य और इवेंट के क्रिएटर्स और उपभोक्ताओं के लिए एक छिपा उपयोगी इस्तेमाल है. यह स्ट्रक्चर सदस्य ऐसे इवेंट के लिए मौजूद नहीं है जिनमें कोई भी फ़ील्ड शून्य नहीं है. हालांकि, सेटर और गैटर बनाना बिना किसी सीमा के ऐक्सेस होना चाहिए.

ब्यौरा
पैरामीटर
[in] aStructureData
c-स्ट्रक्चर का पॉइंटर.
[in] aSchemaDescriptor
Schema का ब्यौरा देने के लिए, SchemaFieldDescriptors.
[out] aNullifiedFields
c स्ट्रक्चर के nullified_fields सदस्य की ओर एक पॉइंटर.
सामान लौटाने की वैल्यू
WEAVE_NO_ERROR
सफल रहा.
WEAVE_ERROR_INVALID_ARGUMENT
अगर फ़ील्ड की जानकारी देने वाला पॉइंटर NULL है.
WEAVE_ERROR_INCORRECT_STATE
अगर फ़ील्ड डिस्क्रिप्टर का फ़ॉर्मैट आपकी उम्मीद से मेल नहीं खाता है.

FindStatusReportStr

const char * FindStatusReportStr(
  uint32_t inProfileId,
  uint16_t inStatusCode
)

पहले हफ़्ते का दिनसाल

uint8_t FirstWeekdayOfYear(
  uint16_t year
)

फ़ॉर्मैट गड़बड़ी

void FormatError(
  char *buf,
  uint16_t bufSize,
  const char *subsys,
  int32_t err,
  const char *desc
)

दी गई गड़बड़ी के बारे में बताने वाली, NULL (टर्मिनल) स्ट्रिंग की स्ट्रिंग देता है.

ब्यौरा
पैरामीटर
[in] buf
बफ़र, जिसमें गड़बड़ी वाली स्ट्रिंग रखी जाएगी.
[in] bufSize
दिए गए बफ़र का साइज़ बाइट में.
[in] subsys
गड़बड़ी के बारे में बताने वाली सबसिस्टम की छोटी स्ट्रिंग. अगर गड़बड़ी की शुरुआत की जगह की जानकारी उपलब्ध नहीं है, तो NULL. यह स्ट्रिंग 10 या उससे कम वर्णों की होनी चाहिए.
[in] err
फ़ॉर्मैट किए जाने में गड़बड़ी.
[in] desc
गड़बड़ी की वजह या मतलब की जानकारी देने वाली स्ट्रिंग या अगर ऐसी जानकारी उपलब्ध नहीं है, तो NULL होगा.

GetArrayElementSize

WEAVE_ERROR GetArrayElementSize(
  uint32_t & aOutSize,
  const FieldDescriptor *aFieldPtr,
  SerializedFieldType aType
)

GetFlag

bool GetFlag(
  const FlagsT & inFlags,
  const FlagT inFlag
)

IsBase34NoIOChar

bool IsBase34NoIOChar(
  char ch
)

IsLeapYear

bool IsLeapYear(
  uint16_t year
)

isमान्यFieldType

bool IsValidFieldType(
  SerializedFieldType aType
)

isमान्यSerialNumber

bool IsValidSerialNumber(
  const char *serialNum
)

लॉग इवेंट

nl::Weave::Profiles::DataManagement::event_id_t LogEvent(
  TEvent *aEvent
)

लॉग इवेंट

nl::Weave::Profiles::DataManagement::event_id_t LogEvent(
  TEvent *aEvent,
  const nl::Weave::Profiles::DataManagement::EventOptions & aOptions
)

ManufacturingWeekToDate

void ManufacturingWeekToDate(
  uint16_t mfgYear,
  uint8_t mfgWeek,
  uint16_t & year,
  uint8_t & month,
  uint8_t & day
)

मार्च के आधार पर दिन का महीना

uint8_t MarchBasedDayOfYearToMonth(
  uint16_t dayOfYear
)

मार्च के आधार पर महीना/दिन का साल

uint16_t MarchBasedMonthToDayOfYear(
  uint8_t month
)

NullifyAllEventField्स

void NullifyAllEventFields(
  TEvent *aEvent
)

तारीख की तारीख

void OrdinalDateToCalendarDate(
  uint16_t year,
  uint16_t dayOfYear,
  uint8_t & month,
  uint8_t & dayOfMonth
)

ReadDataForType

WEAVE_ERROR ReadDataForType(
  TLVReader & aReader,
  void *aStructureData,
  const FieldDescriptor *& aFieldPtr,
  SerializedFieldType aType,
  bool aInArray,
  SerializationContext *aContext
)

स्ट्रक्चर्ड डेटा के आधार पर, TLV से कोई खास एंट्री पढ़ने का रीडर फ़ंक्शन.

ब्यौरा
पैरामीटर
[in] aReader
स्ट्रक्चर में पढ़ने के लिए इस्तेमाल करने वाला रीडर
[in] aStructureData
पढ़ने के लिए c-स्ट्रक्चर्ड डेटा का पॉइंटर
[in,out] aFieldPtr
फ़ील्ड और TLV टैग के बारे में बताने के लिए, FieldDescriptor. फ़ंक्शन, पॉइंटर s.t को बढ़ाएगा. यह फ़ंक्शन
[in] aType
फ़ील्ड का सीरियल फ़ील्ड फ़ील्ड टाइप
[in] aInArray
सही है अगर हम'कोई अरे पढ़ रहे हैं (अज्ञात टैग का इस्तेमाल करें)
[in] aContext
ऑपरेशन के लिए ज़रूरी किसी भी स्थिति वाले क्रम से जुड़ा संदर्भ.
सामान लौटाने की वैल्यू
WEAVE_NO_ERROR
सफल रहा.
other
अन्य गड़बड़ियां जिन्हें My_Reader पर दिखाया जा सकता है.

ReadNullableDataForType

WEAVE_ERROR ReadNullableDataForType(
  TLVReader & aReader,
  void *aStructureData,
  const FieldDescriptor *& aFieldPtr,
  SerializedFieldType aType,
  bool & aIsNullified,
  SerializationContext *aContext
)

TLV से पढ़ने से पहले, डेटा की वैल्यू शून्य या शून्य है या नहीं, यह देखने के लिए रीडर फ़ंक्शन.

ब्यौरा
पैरामीटर
[in] aReader
स्ट्रक्चर में पढ़ने के लिए इस्तेमाल करने वाला रीडर
[in] aStructureData
पढ़ने के लिए c-स्ट्रक्चर्ड डेटा का पॉइंटर
[in,out] aFieldPtr
फ़ील्ड और TLV टैग के बारे में बताने के लिए, FieldDescriptor. फ़ंक्शन, पॉइंटर s.t को बढ़ाएगा. यह FieldDescriptor श्रेणी में अगले एलिमेंट की ओर इशारा करेगा
[in] aType
फ़ील्ड का सीरियल फ़ील्ड फ़ील्ड टाइप
[out] aIsNullified
यह बताने के लिए सेट करें कि कोई फ़ील्ड शून्य है.
[in] aContext
ऑपरेशन के लिए ज़रूरी किसी भी स्थिति वाले क्रम से जुड़ा संदर्भ.
सामान लौटाने की वैल्यू
WEAVE_NO_ERROR
सफल रहा.
other
ईमेल लिखते समय, TLV से जुड़ी गड़बड़ियां.

रजिस्टर करने के दौरान गड़बड़ी का फ़ॉर्मैट

NL_DLL_EXPORT void RegisterErrorFormatter(
  ErrorFormatter *errFormatter
)

गड़बड़ी फ़ॉर्मैट करने वाले प्रोग्राम की ग्लोबल सूची में, गड़बड़ी को फ़ॉर्मैट करने वाला नया फ़ंक्शन जोड़ें.

ब्यौरा
पैरामीटर
[in] errFormatter
Errorformatter स्ट्रक्चर में नए गड़बड़ी फ़ंक्शन के लिए पॉइंटर है. ध्यान दें कि दिए गए Errorformatter स्ट्रक्चर का पॉइंटर, फ़ंक्शन में रखा जाएगा. इसलिए, स्ट्रक्चर की मेमोरी रिज़र्व होनी चाहिए.

सेकंड के बाद से EpochToCalendar समय

void SecondsSinceEpochToCalendarTime(
  uint32_t secondsSinceEpoch,
  uint16_t & year,
  uint8_t & month,
  uint8_t & dayOfMonth,
  uint8_t & hour,
  uint8_t & minute,
  uint8_t & second
)

SerializedDataToTLVr

WEAVE_ERROR SerializedDataToTLVWriter(
  TLVWriter & aWriter,
  void *aStructureData,
  const SchemaFieldDescriptor *aFieldDescriptors
)

किसी डेटा स्ट्रक्चर को TLV स्ट्रक्चर में बदलने के लिए एक लेखक फ़ंक्शन.

डेटा स्ट्रक्चर को समझने और TLV में लिखने के लिए SchemaFieldDescriptor का इस्तेमाल करता है.

ब्यौरा
पैरामीटर
[in] aWriter
लेखक के लिखने का तरीका
[in] aStructureData
c-स्ट्रक्चर्ड डेटा के लिए पॉइंटर (SchemaFieldDescriptor के आधार पर लिखना
[in] aFieldDescriptors
c स्ट्रक्शन + TLV के बारे में बताने के लिए SchemaFieldDescriptor
सामान लौटाने की वैल्यू
WEAVE_NO_ERROR
सफल रहा.
other
अन्य गड़बड़ियां जिन्हें aWriter के ज़रिए दिखाया जाएगा.

SerializedDataToTLVWriterसहायता

WEAVE_ERROR SerializedDataToTLVWriterHelper(
  TLVWriter & aWriter,
  uint8_t aDataTag,
  void *aAppData
)

रैपर लेखक फ़ंक्शन जो SerializedDataToTLVr को कंटेनर के साथ रखता है.

पास करने के लिए, स्ट्रक्चर स्कीमापॉइंटर पेयर को स्ट्रक्चर डेटा और डिस्क्रिप्टर में भी बांट देता है.

ब्यौरा
पैरामीटर
[in] aWriter
लेखक के लिखने का तरीका
[in] aDataTag
लिखने के लिए टैग करें
[in] aAppData
स्ट्रक्चर स्कीमापॉइंटर पेयर जिसमें डेटा स्ट्रक्चर और फ़ील्ड डिस्क्रिप्टर के लिए पॉइंटर होता है. प्रोटोटाइप की वजह से अमान्य*
सामान लौटाने की वैल्यू
WEAVE_NO_ERROR
सफल रहा.
other
अन्य गड़बड़ियां जिन्हें aWriter के ज़रिए दिखाया जाएगा.

सेटफ़्लैग

void SetFlag(
  FlagsT & inFlags,
  const FlagT inFlag
)

सेटफ़्लैग

void SetFlag(
  FlagsT & inFlags,
  const FlagT inFlag,
  const bool inValue
)

स्थिति रिपोर्ट

const char * StatusReportStr(
  uint32_t profileId,
  uint16_t statusCode
)

TLVReaderToDeserializedData

WEAVE_ERROR TLVReaderToDeserializedData(
  nl::Weave::TLV::TLVReader & aReader,
  void *aStructureData,
  const SchemaFieldDescriptor *aFieldDescriptors,
  SerializationContext *aContext
)

TLV को C-स्ट्रक्चर्ड में बदलने के लिए एक रीडर फ़ंक्शन.

डेटा स्ट्रक्चर को समझने के लिए SchemaFieldDescriptor का इस्तेमाल करता है.

यह ज़रूरी है कि अज्ञात फ़ील्ड के बारे में बताया जाए और उसका फ़ील्ड अनुमानित न हो.

ब्यौरा
पैरामीटर
[in] aReader
डेटा में पढ़ने के लिए इस्तेमाल करने वाला रीडर
[in] aStructureData
डेस्टिनेशन सी-स्ट्रक्चर्ड डेटा का पॉइंटर, जिसमें हम SchemaFieldDescriptor के आधार पर पढ़ते हैं
[in] aFieldDescriptors
c स्ट्रक्शन + TLV के बारे में बताने के लिए SchemaFieldDescriptor
[in] aContext
ऑपरेशन के लिए ज़रूरी किसी भी स्थिति वाले क्रम से जुड़ा संदर्भ.
सामान लौटाने की वैल्यू
WEAVE_NO_ERROR
सफल रहा.
other
अन्य गड़बड़ियां जिन्हें Aरीडर से दिखाया जा सकता है.

TLVReaderToDeserializedDataHelper

WEAVE_ERROR TLVReaderToDeserializedDataHelper(
  nl::Weave::TLV::TLVReader & aReader,
  uint8_t aDataTag,
  void *aAppData,
  SerializationContext *aContext
)

एक हेल्पर फ़ंक्शन, जो एक TLV डेटा एलिमेंट को हटाता है.

फ़ंक्शन, StructureSchemaPointer निगरानी को स्ट्रक्चर डेटा में बांटता है और पढ़ने वाले लोगों को ReadDataForTypeType में पास करने के लिए बनाता है.

ब्यौरा
पैरामीटर
[in] aReader
जिस रीडर में डेटा डिज़र्ट किया जाना है
[in] aDataTag
इस समय इस्तेमाल नहीं किया गया
[in] aAppData
स्ट्रक्चर स्कीमापॉइंटर पेयर जिसमें डेटा स्ट्रक्चर और फ़ील्ड डिस्क्रिप्टर के लिए पॉइंटर होता है. प्रोटोटाइप की वजह से अमान्य*
[in] aContext
ऑपरेशन के लिए ज़रूरी किसी भी स्थिति वाले क्रम से जुड़ा संदर्भ.
सामान लौटाने की वैल्यू
WEAVE_NO_ERROR
सफल रहा.
other
अन्य गड़बड़ियां जिन्हें My_Reader पर दिखाया जा सकता है.

WriteArrayData

WEAVE_ERROR WriteArrayData(
  TLVWriter & aWriter,
  void *aStructureData,
  const FieldDescriptor *aFieldPtr
)

कैटगरी बनाने वाला लेखक फ़ंक्शन.

ब्यौरा
पैरामीटर
[in] aWriter
लेखक के लिखने का तरीका
[in] aStructureData
FieldDescriptor के आधार पर लिखने के लिए c-स्ट्रक्चर्ड डेटा के लिए पॉइंटर
[in] aFieldPtr
श्रेणी c स्ट्रक और टीएलवी के बारे में जानकारी देने के लिए, FieldDescriptor
सामान लौटाने की वैल्यू
WEAVE_NO_ERROR
सफल रहा.
other
अन्य गड़बड़ियां जिन्हें aWriter के ज़रिए दिखाया जाएगा.

TypeDataForType

WEAVE_ERROR WriteDataForType(
  TLVWriter & aWriter,
  void *aStructureData,
  const FieldDescriptor *& aFieldPtr,
  SerializedFieldType aType,
  bool aInArray
)

एक लेखक फ़ंक्शन, स्ट्रक्चर्ड डेटा के आधार पर TLV में एक खास एंट्री लिखता है.

ब्यौरा
पैरामीटर
[in] aWriter
लेखक के लिखने का तरीका
[in] aStructureData
लिखने के लिए c-स्ट्रक्चर्ड डेटा का पॉइंटर
[in,out] aFieldPtr
फ़ील्ड और TLV टैग के बारे में बताने के लिए, FieldDescriptor. फ़ंक्शन, पॉइंटर s.t को बढ़ाएगा. यह फ़ंक्शन
[in] aType
फ़ील्ड का सीरियल फ़ील्ड फ़ील्ड टाइप
[in] aInArray
सही है अगर हम'एक श्रेणी लिख रहे हैं (अज्ञात टैग का इस्तेमाल करें)
सामान लौटाने की वैल्यू
WEAVE_NO_ERROR
सफल रहा.
other
अन्य गड़बड़ियां जिन्हें aWriter के ज़रिए दिखाया जाएगा.

TyNullableDataForType

WEAVE_ERROR WriteNullableDataForType(
  TLVWriter & aWriter,
  void *aStructureData,
  const FieldDescriptor *& aFieldPtr,
  SerializedFieldType aType,
  bool aIsNullified
)

TLV पर लिखने से पहले, यह देखने के लिए एक लेखक फ़ंक्शन कि डेटा शून्य हो सकता है या नहीं.

ब्यौरा
पैरामीटर
[in] aWriter
लेखक के लिखने का तरीका
[in] aStructureData
पढ़ने के लिए c-स्ट्रक्चर्ड डेटा का पॉइंटर
[in,out] aFieldPtr
फ़ील्ड और TLV टैग के बारे में बताने के लिए, FieldDescriptor. फ़ंक्शन, पॉइंटर s.t को बढ़ाएगा. यह FieldDescriptor श्रेणी में अगले एलिमेंट की ओर इशारा करेगा
[in] aType
फ़ील्ड का सीरियल फ़ील्ड फ़ील्ड टाइप
[in] aIsNullified
अगर सही है, तो TLV टैग शून्य हो जाएगा.
सामान लौटाने की वैल्यू
WEAVE_NO_ERROR
सफल रहा.
other
ईमेल लिखते समय, TLV से जुड़ी गड़बड़ियां.

सेकंड से सेकंड में

uint32_t secondsToMilliseconds(
  uint32_t seconds
)