AnsweredAssumed Answered

DHCP over WiFi on MQX

Question asked by Oscar Garcia Abad on Apr 30, 2015
Latest reply on May 6, 2015 by Oscar Garcia Abad

Hi all,


I'm writing an MQX WiFi driver for an AT based module. The module is communicating with the ucontroller ( a K60 derivative) using UART. So far I have the UART set up and working, so I can issue AT commands to the module. Thi is done using ipcfg_init_device. After that I send some mediactl commands to the module succesfully:


     - iwcfg_set_essid

     - iwcfg_set_passphrase

     - iwcfg_set_sec_type


Then I want to join the AP I set up using the previous mediactl commands using dhcp. In order to do so I'm using ipcfg_bind_dhcp_wait.


I need to link ipcfg_bind_dhcp_wait with my device. At this point I haven't joined the AP. Can somebody point out How to make this work? Do I need to join the network before using DHCP?