- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I want to use two BCM943907WCD2 devices and one is server(or gateway) ,the other is client.
The AP fails to start DHCP service at wiced_start_dhcp_server() because I define the interface as WICED_ETHERNET_INTERFACE .
How can I get the right configuration to run a BCM943907WCD2 platform as an ethernet server with DHCP function?
Could anyone help?
Solved! Go to Solution.
- Labels:
-
softAP
-
WICED Studio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try adding this:
wiced_ip_setting_t ip_settings =
{
INITIALISER_IPV4_ADDRESS( .ip_address, MAKE_IPV4_ADDRESS( 192,168, 0, 1 ) ),
INITIALISER_IPV4_ADDRESS( .netmask, MAKE_IPV4_ADDRESS( 255,255,255, 0 ) ),
INITIALISER_IPV4_ADDRESS( .gateway, MAKE_IPV4_ADDRESS( 192,168, 0, 1 ) ),
};
wiced_network_up( WICED_ETHERNET_INTERFACE, WICED_USE_INTERNAL_DHCP_SERVER, &ip_settings );
If building for debug, comment the following line for testing
/* DHCP_CHECK_PARAMS( (server == NULL) || ( (interface != WICED_STA_INTERFACE) && (interface != WICED_AP_INTERFACE) && (interface != WICED_P2P_INTERFACE) && (interface != WICED_CONFIG_INTERFACE) ), WICED_BADARG ); */