Skip to content
This repository was archived by the owner on Apr 23, 2023. It is now read-only.

Commit d0a31db

Browse files
committed
Fixed send to
1 parent ac892f1 commit d0a31db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp_utils/Socket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ int Socket::send(const uint8_t* data, size_t length) const {
432432
}
433433
}
434434
} else {
435-
rc = ::lwip_sendto(m_sock, data, length, 0);
435+
rc = ::lwip_send(m_sock, data, length, 0);
436436
if ((rc < 0) && (errno != EAGAIN)) {
437437
// no cure for errors other than EAGAIN - log and exit
438438
ESP_LOGE(LOG_TAG, "send: socket=%d, %s", m_sock, strerror(errno));

0 commit comments

Comments
 (0)