*Solved* DallasTemp Array of DS1820 Adresses

Hi,

I want to change the example

DeviceAddress insideThermometer, outsideThermometer;
insideThermometer = { 0x28, 0x1D, 0x39, 0x31, 0x2, 0x0, 0x0, 0xF0 };
 outsideThermometer   = { 0x28, 0x3F, 0x1C, 0x31, 0x2, 0x0, 0x0, 0x2 };

To an array so that's easier to handle (I need more than 20 sensors).
So, I thought that this should be tehe way to so it:

DeviceAddress chip[5];
  chip[0] = { 0x28, 0xB5, 0xB1, 0x53, 0x04, 0x00, 0x00, 0xBE };
  chip[1] = { 0x28, 0xC0, 0x52, 0x53, 0x04, 0x00, 0x00, 0x59 };

I get the message "error: expected constructor, destructor, or type conversion before '=' token"

Could someone please point me in the right direction to solve this problem?

Rai

Hello, isn't it working if you do..

DeviceAddress chip[] =
{
  { 0x28, 0xB5, 0xB1, 0x53, 0x04, 0x00, 0x00, 0xBE },
  { 0x28, 0xC0, 0x52, 0x53, 0x04, 0x00, 0x00, 0x59 }
};

?

Urgs, you are right.....
Stupid mistake

Thank you.