This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

case about fun at_monitor_sys_init

Hi,

1.How can I use this function?

static int at_monitor_sys_init(const struct device *unused)
{
	int err;

	err = nrf_modem_at_notif_handler_set(at_monitor_dispatch);
	if (err) {
		LOG_ERR("Failed to hook the dispatch function, err %d", err);
	}

	return 0;
}

/* Initialize during SYS_INIT */
SYS_INIT(at_monitor_sys_init, APPLICATION, 0);

2.Can you provide a simple example

3.I have the following information, but I still don't know how to use it.

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/releases/release-notes-1.9.0.html?highlight=at_monitor_init

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/modem/at_monitor.html?highlight=nrf_modem_at_notif_handler_set

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/api.html?highlight=nrf_modem_at_notif_handler_set#c.nrf_modem_at_notif_handler_set

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/at_interface.html?highlight=nrf_modem_at_notif_handler_set

Thank you for all your assistance.
Kind regards,
Peter.Min

Related