   }
 }
 
-int16_t get_pin_number(char first_digit, char second_digit) {
+int16_t getPinNumber(char first_digit, char second_digit) {
   char str[3] = "XX";
   str[0] = first_digit;
   str[1] = second_digit;

  const char *name;
};

// arrays to hold device addresses
// DeviceAddress  room_low = { 0x10, 0x13, 0xB0, 0x5B, 0x02, 0x08, 0x00, 0xC3 }, 
//               room_high = { 0x10, 0x57, 0x87, 0x5B, 0x02, 0x08, 0x00, 0xBF };

TempSensor room_low  = { room_temp, { 0x10, 0x13, 0xB0, 0x5B, 0x02, 0x08, 0x00, 0xC3 }, "RL" }; // !!! name can't be longer than TEMP_SENSOR_NAME_LENGTH - 1
TempSensor room_high = { room_temp, { 0x10, 0x57, 0x87, 0x5B, 0x02, 0x08, 0x00, 0xBF }, "RH" };

TempSensor out_1  = { outside_temp, { 0x10, 0x21, 0x71, 0x5B, 0x02, 0x08, 0x00, 0xAF }, "O1" };
TempSensor out_2  = { outside_temp, { 0x10, 0x2E, 0xA4, 0x5B, 0x02, 0x08, 0x00, 0x07 }, "O2" };
TempSensor chulan = { outside_temp, { 0x10, 0xB8, 0x9D, 0x5B, 0x02, 0x08, 0x00, 0x73 }, "CH" };

// DeviceAddress  out1, out2, out3;

TempSensor temp_sensors[] = { room_low, room_high, out_1, out_2, chulan };


/* Central Board Unit
   This script is a part of my home automation setup 
   Vasily Klenov, 2016
*/

// mqtt
#include <SPI.h>
