Skip to content

Commit

Permalink
Update the README to match OpenCyphal/specification#75
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-kirienko committed Mar 7, 2020
1 parent 13d0f90 commit 09b4370
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const CanardTransfer transfer = {
.port_id = 1234, // This is the subject-ID.
.remote_node_id = CANARD_NODE_ID_UNSET, // Messages cannot be unicast, so use UNSET.
.transfer_id = my_message_transfer_id,
.payload_size = 47, // In this example: a string 45 characters long, 9-bit length prefix, 7-bit padding.
.payload = "\x00Z" "Sancho, it strikes me thou art in great fear.",
.payload_size = 47,
.payload = "\x2D\x00" "Sancho, it strikes me thou art in great fear.",
};
++my_message_transfer_id; // The transfer-ID shall be incremented after every transmission on this subject.
int32_t result = canardTxPush(&ins, &transfer);
Expand Down

0 comments on commit 09b4370

Please sign in to comment.