-
Couldn't load subscription status.
- Fork 7.7k
How to send temperature and address/other(device) to coordinator in real time. #11151
-
Hi P-R-O-C-H-Y
This is great i saw your example.
Zigbee_Thermostat.ino
Zigbee_Temperature_Sensor
I am able to link and communication with each other.
I got a question,
1)what if I have multiple devices to connect? In addition to receiving the temperature, I also need to know real times which device the temperature comes from except the temperature?
void recieveSensorTemp(float temperature) {
Serial.printf("Temperature sensor value: %.2f°C\n", temperature);
sensor_temp = temperature;
}
Are there any similar examples available?
Beta Was this translation helpful? Give feedback.
All reactions
Thanks and appreciate a lot your reply PROCHY. I did make a feature request.
Feature Request: Support endpoint identification from multiple Zigbee devices
Background:
Current Zigbee library examples focus on one-to-one communication. In real use cases, like mine, we often connect multiple end devices (e.g. 5) to a single coordinator. However:
No endpoint/device information is displayed when receiving data (e.g. temperature).
It is difficult to identify which device sent the data.
The existing temperature (I tried to modify 2 devices connected, the second one took a long time) example does not show how to scale to multiple devices.
Suggested improvements:
Show the sender's endpoint or devi...
Replies: 3 comments 3 replies
-
Hi @kiansiong85,
As the Zigbee library is now, there is no way of knowing which endpoint did send the temperature.
But I can see a possible way to implement that. Can you please convert this discussing into a feature request so I will have this in my backlog? Thanks
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks and appreciate a lot your reply PROCHY. I did make a feature request.
Feature Request: Support endpoint identification from multiple Zigbee devices
Background:
Current Zigbee library examples focus on one-to-one communication. In real use cases, like mine, we often connect multiple end devices (e.g. 5) to a single coordinator. However:
No endpoint/device information is displayed when receiving data (e.g. temperature).
It is difficult to identify which device sent the data.
The existing temperature (I tried to modify 2 devices connected, the second one took a long time) example does not show how to scale to multiple devices.
Suggested improvements:
Show the sender's endpoint or device address when receiving data.
Add an example of multiple devices sending data to one coordinator.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
I will close this discussion as a feature request is now open for this functionality :)
Beta Was this translation helpful? Give feedback.
All reactions
-
Beta Was this translation helpful? Give feedback.
All reactions
-
I also need this feature. I tried using some bits of the tsens value to encode an ID onto the payload but that didn't really work, because the tsens float is capped to 16 bits as it gets converted to a unit16_t
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi everyone, the feature request is currently in progress. I am now testing the changes if everything works fine.
I will link a PR to the feature request when available #11168
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1