Listing 1—I wish I could show and tell about what’s behind the API calls. This code makes it look easy, but there are all kinds of code grinding between the host controller and the TRENDnet Wi-Fi card going on in the background.
void main(void)
{
init_USART();
wifi_api(INITIALIZE,CF);
wifi_api(NETWORK,BSS);
wifi_api(CONNECT,EDTP);
while(1);
}