Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doubts about client, server and the latest update of the library v1.0.0 (TZ-360) #133

Closed
diazmanuel opened this issue Oct 19, 2023 · 2 comments
Labels

Comments

@diazmanuel
Copy link

Question

I have some doubts about how this protocol works.

  • What is the difference between client and server? I understand that if you want to have a cluster and generate reports or modify its values, you must declare yourself as a server, but I don't see in which cases you should declare yourself as a client.

  • In the last update of the library v1.0.0, changes were made to the configuration of the reports, Why was the esp_zb_zcl_cmd_direction_t direction parameter added and how is it used?

Additional context.

No response

@github-actions github-actions bot changed the title doubts about client, server and the latest update of the library v1.0.0 doubts about client, server and the latest update of the library v1.0.0 (TZ-360) Oct 19, 2023
@xieqinan
Copy link
Contributor

@diazmanuel ,

What is the difference between client and server? I understand that if you want to have a cluster and generate reports or modify its values, you must declare yourself as a server, but I don't see in which cases you should declare yourself as a client.

  1. Server:

    • A server in Zigbee refers to a device or application that provides services or resources. These services can include functionalities like temperature sensing, light control, or any other capabilities a device might have.
    • Servers respond to requests made by clients. For example, a temperature sensor (server) might provide temperature readings to a coordinator or a remote control (client) might send commands to a light bulb (server) to turn it on or off.
    • In Zigbee, devices often have both client and server functionalities. For instance, a light bulb might be a server for on/off commands and a client for network-related commands.
  2. Client:

    • A client in Zigbee refers to a device or application that requests services or resources from servers.
    • Clients initiate requests to servers to access specific functionalities. For example, a remote control (client) sends a command to a light bulb (server) to change its brightness level.
    • Devices can act as clients for some interactions and servers for others, depending on the context of the communication.

In summary, servers provide services, and clients consume these services by making requests. Zigbee devices often have a mix of server and client functionalities to enable various interactions within a Zigbee network.

In the last update of the library v1.0.0, changes were made to the configuration of the reports, Why was the esp_zb_zcl_cmd_direction_t direction parameter added and how is it used?

The question can refer to Zigbee cluster library spec 2.5.7.1.2 section.

image

@diazmanuel
Copy link
Author

thanks for the reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants