Send feedback
  
   
 
  
    
    
      
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
   
   
  
    
  
  
    
    
  
  nl:: 
  This namespace includes all interfaces within Weave for the Weave Device Control profile. 
  Summary 
  The Device Control Profile facilitates client-server operations such that the client (the controlling device) can trigger specific utility functionality on the server (the device undergoing setup) to assist with and enable the device setup and provisioning process. This includes, for example, resetting the server device's configuration and enabling fail safes that define the behavior when the setup procedure is prematurely aborted. 
  
    
      
        Enumerations 
       
     
    
      
        @172 {kStatusCode_FailSafeAlreadyActive  = 1,kStatusCode_NoFailSafeActive  = 2,kStatusCode_NoMatchingFailSafeActive  = 3,kStatusCode_UnsupportedFailSafeMode  = 4,kStatusCode_RemotePassiveRendezvousTimedOut  = 5,kStatusCode_UnsecuredListenPreempted  = 6,kStatusCode_ResetSuccessCloseCon  = 7,kStatusCode_ResetNotAllowed  = 8,kStatusCode_NoSystemTestDelegate  = 9 
      enumDevice Control Status Codes. 
 
     
    
      
        @173 {kMsgType_ResetConfig  = 1,kMsgType_ArmFailSafe  = 2,kMsgType_DisarmFailSafe  = 3,kMsgType_EnableConnectionMonitor  = 4,kMsgType_DisableConnectionMonitor  = 5,kMsgType_RemotePassiveRendezvous  = 6,kMsgType_RemoteConnectionComplete  = 7,kMsgType_StartSystemTest  = 8,kMsgType_StopSystemTest  = 9,kMsgType_LookingToRendezvous  = 10 
      enumDevice Control Message Types. 
 
     
    
      
        @174 {kArmMode_New  = 1,kArmMode_Reset  = 2,kArmMode_ResumeExisting  = 3 
      enumArmFailSafe Mode Values. 
 
     
    
      
        @175 {kResetConfigFlag_All  = 0x00FF,kResetConfigFlag_NetworkConfig  = 0x0001,kResetConfigFlag_FabricConfig  = 0x0002,kResetConfigFlag_ServiceConfig  = 0x0004,kResetConfigFlag_OperationalCredentials  = 0x0008,kResetConfigFlag_FactoryDefaults  = 0x8000 
      enumResetConfig Flags. 
 
     
    
      
        @176 {kMessageLength_ResetConfig  = 2,kMessageLength_ArmFailsafe  = 5,kMessageLength_DisarmFailsafe  = 0,kMessageLength_EnableConnectionMonitor  = 4,kMessageLength_DisableConnectionMonitor  = 0,kMessageLength_RemotePassiveRendezvous  = 20,kMessageLength_StartSystemTest  = 8,kMessageLength_StopSystemTest  = 0 
      enumMessage Lengths. 
 
     
  
  
  
  Enumerations 
  
    @172 
    
  @172 
      Device Control Status Codes. 
      
        
          Properties 
         
        
          
             
          
            A provisioning fail-safe is already active. 
           
         
        
          
             
          
            No provisioning fail-safe is active. 
           
         
        
          
             
          
            The provisioning fail-safe token did not match the active fail-safe. 
           
         
        
          
             
          
            The system test cannot run without a delegate. 
           
         
        
          
             
          
            No devices rendezvoused with the Device Control server during the client-specified rendezvous period. 
           
         
        
          
             
          
            The device refused to allow the requested reset. 
           
         
        
          
             
          
            The ResetConfig method will succeed, but will close the connection first. 
           
         
        
          
             
          
            Another application has forcibly replaced Device Control server as this Weave stack's unsecured connection handler. 
           
         
        
          
             
          
            The specified fail-safe mode is not supported by the device. 
           
         
      
     
   
  
    @173 
    
  @173 
      Device Control Message Types. 
      
        
          Properties 
         
        
          
             
          
            Arm the configuration fail-safe mechanism on the device. 
           
         
        
          
             
          
            Disable connection liveness monitoring. 
           
         
        
          
             
          
            Disarm an active configuration fail-safe. 
           
         
        
          
             
          
            Enable connection liveness monitoring. 
           
         
        
          
             
          
            Looking to Rendezvouz message. 
            The payload is empty, the only meaningful signal within is the source node id. 
           
         
        
          
             
          
            Indicate to Device Control client that Remote Passive Rendezvous has completed successfully and connection tunnel is open. 
           
         
        
          
             
          
            Request Remote Passive Rendezvous with Device Control server. 
           
         
        
          
             
          
            Reset the configuration state of the device. 
           
         
        
          
             
          
            Start the system test. 
           
         
        
          
             
          
            Stop the system test. 
           
         
      
     
   
  
    @174 
    
  @174 
      ArmFailSafe Mode Values. 
      
        
          Properties 
         
        
          
             
          
            Arm a new fail-safe; return an error if one is already active. 
           
         
        
          
             
          
            Reset all device device configuration and arm a new fail-safe. 
           
         
        
          
             
          
            Resume a fail-safe already in progress; return an error if no fail-safe in progress, or if fail-safe token does not match. 
           
         
      
     
   
  
    @175 
    
  @175 
      ResetConfig Flags. 
      
        
          Properties 
         
        
          
             
          
            Reset all device configuration information. 
           
         
        
          
             
          
            Reset fabric configuration information. 
           
         
        
          
             
          
            Reset device to full factory defaults. 
           
         
        
          
             
          
            Reset network configuration information. 
           
         
        
          
             
          
            Reset device operational credentials. 
           
         
        
          
             
          
            Reset service configuration information. 
           
         
      
     
   
  
    @176 
    
  @176 
      Message Lengths. 
      
        
          Properties 
         
        
          
             
          
            Arm Failsafe message length. 
           
         
        
          
             
          
            Disable Connection Monitor message length. 
           
         
        
          
             
          
            Disarm Failsafe message length. 
           
         
        
          
             
          
            Enable Connection Monitor message length. 
           
         
        
          
             
          
            Remote Passive Rendezvous message length. 
           
         
        
          
             
          
            Reset Config message length. 
           
         
        
          
             
          
            Start System Test message length. 
           
         
        
          
             
          
            Stop System Test message length. 
           
         
      
     
   
  Functions 
  
    SendLookingToRendezvous 
    
WEAVE_ERROR  SendLookingToRendezvous(
  ExchangeContext  *ec
)
      Send a LookingToRendezvous message to the peer. 
      
      
        
          Details 
         
        
          
            Parameters 
            
              
             
           
          
            Return Values 
            
              
                
                  
                    
                      WEAVE_NO_ERROR
                     
                    
                      On success.
                     
                   
                  
                    
                      WEAVE_ERROR_NO_MEMORY
                     
                    
                      If we could not allocate a buffer for the message.
                     
                   
                  
                    
                      other
                     
                    
                      
                     
                   
                 
              
             
           
         
      
     
   
  
  
 
  
    
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates. The OPENTHREAD and related marks are trademarks of the Thread Group and are used under license.
  Last updated 2020-08-28 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-08-28 UTC."],[],[]]