McuMgrScheme

The MCU Manager protocol can be used over a variety of transports and schemes. On android phones, the only applicable schemes are BLE, COAP_BLE, and COAP_UDP. Besides the obvious transport differences, the scheme primarily determines the format of the MCU Manager packet. For example, CoAP schemes put the 8-byte MCU Manager header as a key-value pair in the CBOR payload while non-CoAP schemes simply append the CBOR payload after the 8-byte header.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun isCoap(): Boolean
Link copied to clipboard
open fun valueOf(name: String): McuMgrScheme

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.