Hello everyone:
I'm changing the wifi app Basic application, a small piece of code I do not understand
In the function "void CC3000_UsynchCallback (long lEventType, char * data, unsigned char length)" has the following code.
if (== lEventType HCI_EVNT_WLAN_UNSOL_DHCP)
{
if (* (data + NETAPP_IPCONFIG_MAC_OFFSET) == 0)
{
sprintf ((char *) pucCC3000_Rx_Buffer, "... IP:% d% d% d% d \ f \ r", data [3], data [2], data [1], data [0]);
ulCC3000DHCP = 1;
turnLedOn (8);
}
In the section that says if (* (data + NETAPP_IPCONFIG_MAC_OFFSET), then you have already received data from the CC3000, but in what moment did this happen?
When you see an event unsolicited DHCP also the IP data is sent?
only one call is made to hci_unsolicited_event (), is this function receives data from any unsolicited event?
What would be the unsolicited events that send data?
In the wiki are not explained .What part of the wiki is detailed this doubt?
Sorry for the kind of writing, my English is not very good.
Greetings Agustín I.
Thank you very much.