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:
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?