leaps_enc_key_set

Sets encryption key. The key is stored in nonvolatile memory. The key that consists of just zeros is considered as invalid. If the key is set, the node can enable encryption automatically. Automatic enabling of the encryption is triggered via UWB network when the node detects encrypted message and is capable of decrypting messages with the key. The encryption can be disabled by clearing the key (leaps_enc_key_clear).

在设置新值的情况下,此调用会写入内部闪存,因此不应频繁使用,在最坏的情况下可能需要数百毫秒!需要重置才能使新配置生效`


输入
  • 节值(加密密钥)

输出

示例

TLV 请求

类型

长度

价值

0x3C

0x10

0x00 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 0x99 0xAA 0xBB 0xCC 0xDD 0xEE 0xFF

类型0x3C表示命令leaps_enc_key_set

TLV 响应

类型

长度

价值

0x40

0x01

0x00

类型 0x40 表示状态代码