Hi Jason,
Just as you pointed, there is not a function to stop the DHCP server. What you can do is to kill the task. Take this code as an example:
/* Start DHCP Server: */
error = DHCPSRV_init(“DHCP server”, 7, 2000);
/* Kill DHCP server */
task_id = _task_get_id_from_name(“DHCP server”);
_task_abort(task_id);
I hope this helps.
Have a great day,
Garabo
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------