Closed charlie-cheetah closed 4 years ago
The error is generated in the PHP code? What does the PHP script look like?
It's a copy paste from example:
function send_to_leds ($data){
$sock = fsockopen("192.168.1.102", 9999);
fwrite($sock, $data);
fclose($sock);
}
maybe the scrip is sending too much too fast, try adding usleep(10000); after the fwrite()
Should be fixed now
Hi, I made a web page with a colorpicker that is sending a fill command to tcp socket immediately when color is changed. And I stumble upon this error, when I'm using the script:
Waiting for client to connect. Error set SO_KEEPALIVE
The script is working fine for a while, and then this error occur. These two lines are displaying in a infinite loop. I think it may be because the script is sending new command too fast.