NLWdmClient

Podsumowanie

Dziedziczenie

Odziedziczy z: NSObject

Właściwości

name
NSString *
owner
id
resultCallbackQueue
dispatch_queue_t

Funkcje publiczne

NS_UNAVAILABLE()
virtual instancetype
Wyłącz domyślny inicjator dziedziczony z NSObject.
close:(WdmClientCompletionBlock completionHandler)
virtual void
Wymuszone zwolnienie wszystkich zasobów i zniszczenie wszystkich odwołań.
flushUpdate:failure:(WdmClientCompletionBlock completionHandler, WdmClientFailureBlock failureHandler)
virtual void
Rozpoczyna usuwanie wszystkich danych o cechach.
getDataSink:(long long traitInstancePtr)
init:weaveWorkQueue:appCallbackQueue:exchangeMgr:messageLayer:nlWeaveDeviceManager:(NSString *name, dispatch_queue_t weaveWorkQueue, dispatch_queue_t appCallbackQueue, nl::Weave::WeaveExchangeManager *exchangeMgr, nl::Weave::WeaveMessageLayer *messageLayer, NLWeaveDeviceManager *NS_DESIGNATED_INITIALIZER)
virtual instancetype
newDataSink:profileId:instanceId:path:(NLResourceIdentifier *nlResourceIdentifier, uint32_t profileId, uint64_t instanceId, NSString *path)
Utwórz nowe dane newDataSink.
refreshData:failure:(WdmClientCompletionBlock completionHandler, WdmClientFailureBlock failureHandler)
virtual void
Rozpoczyna synchronizację wszystkich danych cech.
removeDataSinkRef:(long long traitInstancePtr)
virtual void
setNodeId:(uint64_t nodeId)
virtual void
ustawianie identyfikatora węzłów Weave w katalogu cech w WdmClient
statusReportToString:statusCode:(NSUInteger profileId, NSInteger statusCode)
virtual NSString *
toErrorString:(WEAVE_ERROR err)
virtual NSString *

Właściwości

nazwa

NSString * name

owner

id owner

resultCallbackQueue

dispatch_queue_t resultCallbackQueue

Funkcje publiczne

NS_UNAVAILABLE

virtual instancetype NS_UNAVAILABLE()

Wyłącz domyślny inicjator dziedziczony z NSObject.

zamknij:

virtual void close:(
  WdmClientCompletionBlock completionHandler
)

Wymuszone zwolnienie wszystkich zasobów i zniszczenie wszystkich odwołań.

Po tym wywołaniu nie można przywrócić tego klienta WDMClient.

flushUpdate:failure:

virtual void flushUpdate:failure:(
  WdmClientCompletionBlock completionHandler,
  WdmClientFailureBlock failureHandler
)

Rozpoczyna usuwanie wszystkich danych o cechach.

Rezultat tej operacji można zaobserwować za pomocą obiektów ExactHandler i farmy errorHandler,NLWdmClientFlushUpdateError(local client error) Jeśli operacja się nie uda, zwykle oznacza to, że nie można jej zakończyć – na przykład z powodu problemu z komunikacją lub protokołem – wywoływany jest błąd onWdmClientError.

getDataSink:

virtual NLGenericTraitUpdatableDataSink * getDataSink:(
  long long traitInstancePtr
)

init:weaveWorkQueue:appCallbackQueue:exchangeMgr:messageLayer:nlWeaveDeviceManager:

virtual instancetype init:weaveWorkQueue:appCallbackQueue:exchangeMgr:messageLayer:nlWeaveDeviceManager:(
  NSString *name,
  dispatch_queue_t weaveWorkQueue,
  dispatch_queue_t appCallbackQueue,
  nl::Weave::WeaveExchangeManager *exchangeMgr,
  nl::Weave::WeaveMessageLayer *messageLayer,
  NLWeaveDeviceManager *NS_DESIGNATED_INITIALIZER
)

newDataSink:profileId:instanceId:path:

virtual NLGenericTraitUpdatableDataSink * newDataSink:profileId:instanceId:path:(
  NLResourceIdentifier *nlResourceIdentifier,
  uint32_t profileId,
  uint64_t instanceId,
  NSString *path
)

Utwórz nowe dane newDataSink.

Szczegóły
Parametry
nlResourceIdentifier
identyfikator zasobu to globalnie unikalny identyfikator zasobu Weave.
profileId
identyfikator profilu cechy
instanceId
identyfikator instancji cechy
path
ścieżka cech

OdświeżData:failure:

virtual void refreshData:failure:(
  WdmClientCompletionBlock completionHandler,
  WdmClientFailureBlock failureHandler
)

Rozpoczyna synchronizację wszystkich danych cech.

Wynik tej operacji można obserwować za pomocą obiektów completionHandler i errorHandler

removeDataSinkRef:

virtual void removeDataSinkRef:(
  long long traitInstancePtr
)

setNodeId:

virtual void setNodeId:(
  uint64_t nodeId
)

ustawianie identyfikatora węzłów Weave w katalogu cech w WdmClient

Szczegóły
Parametry
nodeId
Identyfikator węzła splotu

statusReportToString:kodstatusu:

virtual NSString * statusReportToString:statusCode:(
  NSUInteger profileId,
  NSInteger statusCode
)

toErrorString:

virtual NSString * toErrorString:(
  WEAVE_ERROR err
)