In webserver.c i have this lines:
I noticed the exit functions that are a bit overkill. I will change those to just warnings.
The wierd thing is that it first tries to discover pilight. If i can't, it tries to connect to pilight normally. That doesn't work either.
Can you test the following.
1. Change the exit(EXIT_FAILURE); to goto close;
2. Recompile and reinstall
3. Start the daemon (it shouldn't stop)
4. Start pilight-receive without parameters.
5. Start pilight-receive like this:
Code:
settings_find_number("standalone", &standalone);
if(ssdp_seek(&ssdp_list) == -1 || standalone == 1) {
logprintf(LOG_DEBUG, "no pilight ssdp connections found");
char server[16] = "127.0.0.1";
if((sockfd = socket_connect(server, (unsigned short)socket_get_port())) == -1) {
logprintf(LOG_DEBUG, "could not connect to pilight-daemon");
exit(EXIT_FAILURE);
}
} else {
if((sockfd = socket_connect(ssdp_list->ip, ssdp_list->port)) == -1) {
logprintf(LOG_DEBUG, "could not connect to pilight-daemon");
exit(EXIT_FAILURE);
}
}
The wierd thing is that it first tries to discover pilight. If i can't, it tries to connect to pilight normally. That doesn't work either.
Can you test the following.
1. Change the exit(EXIT_FAILURE); to goto close;
2. Recompile and reinstall
3. Start the daemon (it shouldn't stop)
4. Start pilight-receive without parameters.
5. Start pilight-receive like this:
Code:
pilight-receive -S 127.0.0.1 -P [pilight port]