DHCP server code in modustoolbox

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
WaLo_3890256
Level 2
Level 2
5 replies posted 10 questions asked 5 questions asked

Hello,

We are running amazon FreeRTOS with CY8CKIT-062-WiFi-BT development kit on modus ide. We need to configure device to softap mode.

We have used WIFI_ConfigureAP and WIFI_StartAP function to let device in ap mode and we can scan and connect by other devices such as NB and cell phone. The next step is we need to create DHCP sever, but we can't find the DHCP sever related code in modus. If we move DHCP server source from WICED will have a lot of compile errors. Please help if DHCP can implement in modus.

Thanks.

BR,

Wayne

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

Porting the WICED DHCP server code will not be straightforward since that is tightly coupled with the hooks of WICED SDK.

I had earlier tried to clean up the DHCP Server code but did not really test it out. Nevertheless, I am attaching the same here for you to check with your application. You can just add this .c, .h files inside your application code folder and call start_dhcp_server from your main app. Let me know how this goes.

Disclaimer: This code snippet has not been tested or gone through standard Cypress review procedure.

View solution in original post

0 Likes
1 Reply
lock attach
Attachments are accessible only for community members.
RaktimR_11
Moderator
Moderator
Moderator
500 replies posted 250 replies posted 100 replies posted

Porting the WICED DHCP server code will not be straightforward since that is tightly coupled with the hooks of WICED SDK.

I had earlier tried to clean up the DHCP Server code but did not really test it out. Nevertheless, I am attaching the same here for you to check with your application. You can just add this .c, .h files inside your application code folder and call start_dhcp_server from your main app. Let me know how this goes.

Disclaimer: This code snippet has not been tested or gone through standard Cypress review procedure.

0 Likes