4 * Created on: Oct 20, 2010
14 #include "W1Scanner.hh"
19 int main(int argc, char** argv) {
21 list<W1Device *> device_list;
30 log_info("storage location: %s\n", location.c_str());
32 W1Store::set_location(location.c_str());
35 scanner = new W1Scanner();
36 device_list = scanner->get_device_list();
38 if (device_list.size() > 0) {
41 for(list<W1Device *>::iterator list_iter = device_list.begin(); list_iter != device_list.end(); list_iter++)
43 W1Device *device = (W1Device *)*list_iter;
47 if (round >= store_interval) {
51 sleep(interval_seconds);
52 if (round >= store_interval) {
58 log_debug("could not find 1-wire devices.\n");