Subversion Repositories HomeAutomation

Rev

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

Rev 1987 Rev 1989
Line 68... Line 68...
68
   
68
   
69
    boost::algorithm::to_lower(parts[0]);
69
    boost::algorithm::to_lower(parts[0]);
70
   
70
   
71
    if (parts[0] == "udp")
71
    if (parts[0] == "udp")
72
    {
72
    {
73
        this->protocol_ = net::PROTOCOL_UDP;
73
        this->protocol_ = net::TRANSPORT_PROTOCOL_UDP;
74
    }
74
    }
75
    else if (parts[0] == "serial")
75
    else if (parts[0] == "serial")
76
    {
76
    {
77
        this->protocol_ = net::PROTOCOL_SERIAL;
77
        this->protocol_ = net::TRANSPORT_PROTOCOL_SERIAL;
78
    }
78
    }
79
    else
79
    else
80
    {
80
    {
81
        LOG.Error("Unknown protocol, only support udp and serial, got " + parts[0]);
81
        LOG.Error("Unknown protocol, only support udp and serial, got " + parts[0]);
82
        return;
82
        return;