You are reading a single comment by @MaBe and its replies. Click here to read the full conversation.
  • I guess this is what you are looking for:

    // info about the structure 
    typedef struct {
        ip4_addr_t ip;
        ip4_addr_t netmask;
        ip4_addr_t gw;
    } tcpip_adapter_ip_info_t;
    
    
    // STA calls
    tcpip_adapter_dhcpc_stop(WIFI_IF_STA);
    tcpip_adapter_set_ip_info(WIFI_IF_STA, const tcpip_adapter_ip_info_t *ip_info)
    
    // AP - calls
    tcpip_adapter_dhcpc_stop(WIFI_IF_AP);
    tcpip_adapter_set_ip_info(WIFI_IF_AP, const tcpip_adapter_ip_info_t *ip_info)
    tcpip_adapter_dhcpc_start(WIFI_IF_AP);
    
    
About

Avatar for MaBe @MaBe started