Xinyuan-LilyGO / T-ZigBee

Zigbee Ultra Low Power IOT Development Board
GNU Affero General Public License v3.0
72 stars 18 forks source link

How to send data to node device? #20

Open TerrorTommy opened 1 year ago

TerrorTommy commented 1 year ago

I might be dump or something. don't know well about zigbee protocol yet. I'm working with LilyGo-Tzigbee and I've done testing "light demo". Everything seems work fine to me. by attentive observation, I found the function zbhci_ZclSendReportCmd() used to send data to gateway device, but my aim is to send data back to the node device n still can't find a valid solution. may someone help me how am I supposed to do that? Thanks in advance.

lbuque commented 1 year ago

You mean the gateway sends data to the child device?

You can use this api: https://zbhci.readthedocs.io/en/latest/developer-guide/index.html#c.zbhci_ZclAttrWrite