![]()  | 
  
    AlexaClientSDK
    3.0.0
    
   A cross-platform, modular SDK for interacting with the Alexa Voice Service 
   | 
 
#include <DeviceProtocolTracer.h>


Public Member Functions | |
ProtocolTracerInterface Functions  | |
| unsigned int | getMaxMessages () override | 
| bool | setMaxMessages (unsigned int limit) override | 
| void | setProtocolTraceFlag (bool enabled) override | 
| std::string | getProtocolTrace () override | 
| void | clearTracedMessages () override | 
EventTracerInterface Functions  | |
| void | traceEvent (const std::string &messageContent) override | 
MessageObserverInterface Functions  | |
| void | receive (const std::string &contextId, const std::string &message) override | 
  Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::diagnostics::ProtocolTracerInterface | |
| virtual | ~ProtocolTracerInterface ()=default | 
| Destructor.  More... | |
  Public Member Functions inherited from alexaClientSDK::avsCommon::sdkInterfaces::EventTracerInterface | |
| virtual | ~EventTracerInterface ()=default | 
Static Public Member Functions | |
| static std::shared_ptr< DeviceProtocolTracer > | create () | 
Utility class to record directives and events processed by the SDK.
      
  | 
  overridevirtual | 
This method acquires a mutex and clears the trace messages that are recorded.
Implements alexaClientSDK::avsCommon::sdkInterfaces::diagnostics::ProtocolTracerInterface.
      
  | 
  static | 
Creates a new instance of DeviceProtocolTracer.
DeviceProtocolTracer. 
      
  | 
  overridevirtual | 
      
  | 
  overridevirtual | 
Returns the recorded protocol trace string. Sample output: { "trace" : [ <Directive 1>, <Directive 2>, <Event 1>, <Directive 3> ] }
Implements alexaClientSDK::avsCommon::sdkInterfaces::diagnostics::ProtocolTracerInterface.
      
  | 
  overridevirtual | 
A function that a client must implement to receive Messages from AVS.
| contextId | The context for the message, which in this case reflects the logical HTTP/2 stream the message arrived on. | 
| message | The AVS message that has been received. | 
Implements alexaClientSDK::avsCommon::sdkInterfaces::MessageObserverInterface.
      
  | 
  overridevirtual | 
Change the max messages that can be stored. If limit is lower than the number of currently stored messages, then this function should fail and leave the limit unchanged.
| limit | The maximum number of messages that will be stored. | 
Implements alexaClientSDK::avsCommon::sdkInterfaces::diagnostics::ProtocolTracerInterface.
      
  | 
  overridevirtual | 
Set the protocol trace flag.
| enabled | indicating if the flag should be true/false. | 
Implements alexaClientSDK::avsCommon::sdkInterfaces::diagnostics::ProtocolTracerInterface.
      
  | 
  overridevirtual | 
This method is called when an event is sent to AVS.
| messageContent | The content of the message sent to AVS.  | 
Implements alexaClientSDK::avsCommon::sdkInterfaces::EventTracerInterface.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0