/* The sim modem sends and unsolicited +CADATAIND: <cid> if data can be read from a socket.  */
MODEM_CMD_DEFINE(on_urc_cadataind)
/* The sim modem sends and unsolicited +CADATAIND: <cid> if data can be read from a socket.  */
MODEM_CMD_DEFINE(on_urc_cadataind)
{
	struct modem_socket *sock;
	int sock_fd;
	sock_fd = atoi(argv[0]);
	sock = modem_socket_from_fd(&mdata.socket_config, sock_fd);
	if (!sock) {
		return 0;
	}
	modem_socket_packet_size_update(&mdata.socket_config, sock, 1);
	LOG_INF("Data available on socket: %d", sock_fd);
	modem_socket_data_ready(&mdata.socket_config, sock);
	return 0;
}