#include #include #include static float temp_sisa = 85.; static float temp_ulko = 85.; static float hum_sisa = 85.; struct owaddr addr_sisa = {0x26, {0x97, 0x9f, 0x52, 0x00, 0x00, 0x00}, 0x52}; struct owaddr addr_ulko = {0x10, {0xae, 0x5e, 0x0f, 0x01, 0x08, 0x00}, 0xc4}; /* Public functions */ void temperature_update_sisa() { temp_sisa = ds2438_temperature(&addr_sisa); } void temperature_update_ulko() { temp_ulko = ds18s20_temperature(&addr_ulko); } void humidity_update_sisa() { hum_sisa = ds2438_humidity(&addr_sisa); } float get_temperature_sisa() { return temp_sisa; } float get_humidity_sisa() { return hum_sisa; } float get_temperature_ulko() { return temp_ulko; }