In my project there is a number of clusters which have some sensor nodes inside, in every cluster nodes detect level of some gases and temperature, generate some data packets then send these packets to the cluster head (nodes in the cluster use Zigbee protocol to communicate to each other) , I want to perform data aggregation in cluster heads on packets generating by these nodes to eliminate redundant data. I couldn't find some similar codes for data aggregation to figure out what should I do. if you have some experience about it ,Please let me know
Thanks