14 蓝牙发包形式

client server 端发包方式

  • Request—This PDU is sent by the client to the server and the server re- sponds with a response.

  • Response—This PDU is sent by the server in response to a request from the client.

  • Command—This PDU is sent by the client to the server. No response is received for this PDU. (client to server with no response )
  • Notification—This PDU is sent by the server to the client. The client does not send anything back.
  • Indication—This PDU is sent by the server to the client and the client re- sponds with a confirmation.
  • Confirmation—This PDU is sent by the client to confirm the receipt of an indication. (未了解)

蓝牙请求响应方式

request-indication-response-confirmation request-notification-response

Sequential Transactions

  • request-response
  • indication-confirmation
  • The Attribute protocol is a sequential request-response, indication-confirmation
    protocol
    

    For commands and responses—The client sends one request to the server and then waits for the response before sending the next request.

For indications and confirmations—The server sends one indication to the client and then waits for the confirmation from the client before sending the next indication.

results matching ""

    No results matching ""