Subversion Repositories HomeAutomation

Rev

Rev 984 | Rev 987 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 984 Rev 985
Line 61... Line 61...
61
    SyslogStream &slog = SyslogStream::getInstance();
61
    SyslogStream &slog = SyslogStream::getInstance();
62
    VirtualMachine &vm = VirtualMachine::getInstance();
62
    VirtualMachine &vm = VirtualMachine::getInstance();
63
    CanDebug &canDebug = CanDebug::getInstance();
63
    CanDebug &canDebug = CanDebug::getInstance();
64
 
64
 
65
    string address = Settings::get("CanNetAddress");
65
    string address = Settings::get("CanNetAddress");
-
 
66
    if (address == "")
-
 
67
    {
-
 
68
        throw new Atom::Exception("CanNetAddress is not defined in the config file, can not start.");
-
 
69
    }
-
 
70
 
66
    string port = Settings::get("CanNetPort");
71
    string port = Settings::get("CanNetPort");
-
 
72
    if (port == "")
-
 
73
    {
-
 
74
        throw new Atom::Exception("CanNetPort is not defined in the config file, can not start.");
-
 
75
    }
67
 
76
 
68
    myChannel->setAddress(address);
77
    myChannel->setAddress(address);
69
    myChannel->setPort(stoi(port));
78
    myChannel->setPort(stoi(port));
70
    myChannel->setReconnectTimeout(10);
79
    myChannel->setReconnectTimeout(10);
71
 
80