Dynamic Host Configuration Protocol¶
-
group
LWESP_DHCP
DHCP config.
Functions
-
lwespr_t
lwesp_dhcp_set_config
(uint8_t sta, uint8_t ap, uint8_t en, const lwesp_api_cmd_evt_fn evt_fn, void *const evt_arg, const uint32_t blocking)¶ Configure DHCP settings for station or access point (or both)
Configuration changes will be saved in the NVS area of ESP device.
- Return
lwespOK on success, member of lwespr_t enumeration otherwise
- Parameters
[in] sta
: Set to1
to affect station DHCP configuration, set to0
to keep current setup[in] ap
: Set to1
to affect access point DHCP configuration, set to0
to keep current setup[in] en
: Set to1
to enable DHCP, or0
to disable (static IP)[in] evt_fn
: Callback function called when command has finished. Set toNULL
when not used[in] evt_arg
: Custom argument for event callback function[in] blocking
: Status whether command should be blocking or not
-
lwespr_t