Files
openthread/doc/spinel-protocol-src/spinel-prop-debug.md
T
Robert Quattlebaum 64544d0cee Spinel Changes (#1777)
* spinel: Updates in preparation for IETF submission.

* spinel: Use revision number instead of hash

* spinel: James is the editor
2017-05-22 12:07:01 -07:00

1.1 KiB

Debug Properties

PROP 16384: PROP_DEBUG_TEST_ASSERT

  • Type: Read-Only
  • Packed-Encoding: b

Reading this property will cause an assert on the NCP. This is intended for testing the assert functionality of underlying platform/NCP. Assert should ideally cause the NCP to reset, but if assert is not supported or disabled boolean value of false is returned in response.

PROP 16385: PROP_DEBUG_NCP_LOG_LEVEL

  • Type: Read-Write
  • Packed-Encoding: C

Provides access to the NCP log level. Currently defined values are (which follows the RFC 5424):

  • 0: Emergency (emerg).
  • 1: Alert (alert).
  • 2: Critical (crit).
  • 3: Error (err).
  • 4: Warning (warn).
  • 5: Notice (notice).
  • 6: Information (info).
  • 7: Debug (debug).

If the NCP supports dynamic log level control, setting this property changes the log level accordingly. Getting the value returns the current log level. If the dynamic log level control is not supported, setting this property returns a PROP_LAST_STATUS with STATUS_INVALID_COMMAND_FOR_PROP.