Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

KeepAlive

TODO: fill this section

The state machine for the KeepAlive protocol is as follows:

graph LR
  classDef client color:black,fill:PaleGreen,stroke:DarkGreen;
  classDef server color:black,fill:PowderBlue,stroke:DarkBlue;
  linkStyle default stroke:gray

  StDone(((StDone)))

  i(( )) --> StClient
  StClient --MsgKeepAlive--> StServer
  StServer --MsgKeepAliveResponse--> StClient
  StClient --MsgDone--> StDone

  class StClient client
  class StServer server

The CDDL for the messages in KeepAlive is as follows:

;; messages.cddl
keepAliveMessage = msgKeepAlive
                 / msgKeepAliveResponse
                 / msgDone

msgKeepAlive = [ 0, base.word16 ]
msgKeepAliveResponse = [ 1, base.word16 ]
msgDone = [ 2 ]

;# import base as base