I lost 2 days figuring this out. The definition of function is
INT32 netapp_dhcp(UINT32 *aucIP, UINT32 *aucSubnetMask,UINT32 *aucDefaultGateway, UINT32 *aucDNSServer)
so naturaly you put array of UINT32 values e.g.
UINT32 Static_IP[4];
In the netapp_dhcp() function it is used macro
#define ARRAY_TO_STREAM(p, a, l) {register INT16 _i; for (_i = 0; _i < l; _i++) *(p)++ = ((UINT8 *) a)[_i];}
and this mean it takes byte by byte from UINT32 array. UINT32 array have 4 bytes for one value so 192 is written as 192, 0, 0, 0. So the wrong values are saved to CC3000 EEPROM.
I am using LPC18xx and host driver v1.14.
And another thing. In head comment of this function are wrong instructions:
//! @param aucIP device mac address, 6 bytes. Saved: yes //! @param aucSubnetMask device mac address, 6 bytes. Saved: yes //! @param aucDefaultGateway device mac address, 6 bytes. Saved: yes //! @param aucDNSServer device mac address, 6 bytes. Saved: yes