mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
add some loop statistics
This commit is contained in:
@@ -248,13 +248,9 @@ void GwSocketServer::sendToClients(const char *buf,int source){
|
||||
gwClientPtr client = clients[i];
|
||||
if (! client->hasClient()) continue;
|
||||
if ( client->client->connected() ) {
|
||||
bool rt=client->enqueue((uint8_t*)buf,len);
|
||||
if (!rt){
|
||||
LOG_DEBUG(GwLog::DEBUG,"overflow in send to %s",client->remoteIp.c_str());
|
||||
client->enqueue((uint8_t*)buf,len);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int GwSocketServer::numClients(){
|
||||
|
||||
Reference in New Issue
Block a user