Show More
@@ -631,19 +631,21 b' 0x02' | |||||
631 | server. The command has been fully issued and no new data for this |
|
631 | server. The command has been fully issued and no new data for this | |
632 | command will be sent. The next frame will belong to a new command. |
|
632 | command will be sent. The next frame will belong to a new command. | |
633 |
|
633 | |||
634 |
|
|
634 | Response Data (``0x04``) | |
635 |
------------------------ |
|
635 | ------------------------ | |
636 |
|
636 | |||
637 |
This frame contains raw |
|
637 | This frame contains raw response data to an issued command. | |
638 |
|
638 | |||
639 | The following flag values are defined for this type: |
|
639 | The following flag values are defined for this type: | |
640 |
|
640 | |||
641 | 0x01 |
|
641 | 0x01 | |
642 |
Data continuation. When set, an additional frame containing r |
|
642 | Data continuation. When set, an additional frame containing response data | |
643 |
|
|
643 | will follow. | |
644 | 0x02 |
|
644 | 0x02 | |
645 |
End of data. When se |
|
645 | End of data. When set, the response data has been fully sent and | |
646 | no additional frames for this response will be sent. |
|
646 | no additional frames for this response will be sent. | |
|
647 | 0x04 | |||
|
648 | CBOR data. When set, the frame payload consists of CBOR data. | |||
647 |
|
649 | |||
648 | The ``0x01`` flag is mutually exclusive with the ``0x02`` flag. |
|
650 | The ``0x01`` flag is mutually exclusive with the ``0x02`` flag. | |
649 |
|
651 |
@@ -79,10 +79,12 b' FLAGS_COMMAND_DATA = {' | |||||
79 |
|
79 | |||
80 | FLAG_BYTES_RESPONSE_CONTINUATION = 0x01 |
|
80 | FLAG_BYTES_RESPONSE_CONTINUATION = 0x01 | |
81 | FLAG_BYTES_RESPONSE_EOS = 0x02 |
|
81 | FLAG_BYTES_RESPONSE_EOS = 0x02 | |
|
82 | FLAG_BYTES_RESPONSE_CBOR = 0x04 | |||
82 |
|
83 | |||
83 | FLAGS_BYTES_RESPONSE = { |
|
84 | FLAGS_BYTES_RESPONSE = { | |
84 | b'continuation': FLAG_BYTES_RESPONSE_CONTINUATION, |
|
85 | b'continuation': FLAG_BYTES_RESPONSE_CONTINUATION, | |
85 | b'eos': FLAG_BYTES_RESPONSE_EOS, |
|
86 | b'eos': FLAG_BYTES_RESPONSE_EOS, | |
|
87 | b'cbor': FLAG_BYTES_RESPONSE_CBOR, | |||
86 | } |
|
88 | } | |
87 |
|
89 | |||
88 | FLAG_ERROR_RESPONSE_PROTOCOL = 0x01 |
|
90 | FLAG_ERROR_RESPONSE_PROTOCOL = 0x01 |
General Comments 0
You need to be logged in to leave comments.
Login now