This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GATT层所谓client和server到底是什么概念



如题,最近在研究蓝牙,学习BLE Software Developer's Guide.pdf,其中关于GATT层的解释有client和server的概念。

说来惭愧,之前搞MQTT的时候,遇到过这个概念,当时就没弄清楚,现在又遇到,还是很懵

请问:

1.这两个角色是对立的吗?有上下层的关系吗?比如server的角色是位于通讯的上层之类的

2.如何根据自己的应用来确定GATT应初始化为client还是server?

暂时先这么多吧,期待大神的回答!笔芯!