HardwareVersion extended with 255-byte COA field

This commit is contained in:
Pavel Kirienko 2015-01-10 20:12:48 +03:00
parent c4c45b995f
commit 7b7286b9ca
3 changed files with 16 additions and 11 deletions

View File

@ -1,16 +1,17 @@
#
# Full node info request.
# Note that all fields of the response section are byte-aligned.
#
---
# Version information shall not be changed while the node is running.
HardwareVersion hardware_version
SoftwareVersion software_version
# Current node status
NodeStatus status
# Version information shall not be changed while the node is running.
SoftwareVersion software_version
HardwareVersion hardware_version
# Human readable non-empty ASCII node name.
# Empty string is not a valid node name.
# Node name shall not be changed while the node is running.

View File

@ -10,3 +10,6 @@ uint8 minor
# All zeros is not a valid UID.
# If filled with zeros, assume that the value is undefined.
uint8[16] unique_id
# Certificate of authenticity (COA) of the hardware, 255 bytes max.
uint8[<256] certificate_of_authenticity

View File

@ -57,19 +57,20 @@ TEST(Dsdl, Streaming)
"msgid: 0\n"
"payload: \"Here\\x09goes\\x0Apayload\"\n"
"==========\n"
"hardware_version: \n"
" major: 0\n"
" minor: 0\n"
" unique_id: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\n"
"status: \n"
" uptime_sec: 0\n"
" status_code: 0\n"
"software_version: \n"
" major: 0\n"
" minor: 0\n"
" optional_field_mask: 0\n"
" vcs_commit: 0\n"
" image_crc: 0\n"
"status: \n"
" uptime_sec: 0\n"
" status_code: 0\n"
"hardware_version: \n"
" major: 0\n"
" minor: 0\n"
" unique_id: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\n"
" certificate_of_authenticity: \"\"\n"
"name: \"\"\n"
"==========\n"
"c: 0\n"