Re: Jeenode+DS18B20+Homeseer
Posted: Wed Feb 15, 2012 11:51 pm
Yes, but it has to be done in the sketch I guess.
I assume you search the bus for 1-Wire devices, put them in an array and loop through that array to get the temperatures?
What you could do is re-arrange that array with addresses in the order you want. This would probably mean hard-coded addresses inside the sketch, which is not very good in terms of maintenance (what happens if you replace a broken sensor... change the sketch? That's NOT good...)
Why do you want to influence the order anyway? Just curious....
I assume you search the bus for 1-Wire devices, put them in an array and loop through that array to get the temperatures?
What you could do is re-arrange that array with addresses in the order you want. This would probably mean hard-coded addresses inside the sketch, which is not very good in terms of maintenance (what happens if you replace a broken sensor... change the sketch? That's NOT good...)
Why do you want to influence the order anyway? Just curious....