Update at_socket.c

This commit is contained in:
linuxhan 2018-10-11 22:41:13 +08:00 committed by GitHub
parent 13a8afa2d4
commit b6968d2999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -791,6 +791,7 @@ int at_sendto(int socket, const void *data, size_t size, int flags, const struct
goto __exit;
}
sock->state = AT_SOCKET_CONNECT;
/* set AT socket receive data callback function */
at_dev_ops->at_set_event_cb(AT_SOCKET_EVT_RECV, at_recv_notice_cb);
at_dev_ops->at_set_event_cb(AT_SOCKET_EVT_CLOSED, at_closed_notice_cb);
}