This function initializes the wireless LAN.

Syntax

int SysWLANInit(
  void *rsv
);

Parameters

rsv
[in] Please specify NULL.

Return value

Returns TRUE if the function succeeds, FALSE otherwise.

Remarks

After enabling wireless LAN with SysSetWLANPower function, or after starting the user application while the Power setting of the Wireless settings in the System menu is set to AUTO, call this API before starting wireless communication.
You must keep calling the Idle function while the wirelwss LAN is enabled.

Requirements

Header file:
lib.h
Library file:
libSTARTUPOPH5000.a

Sample

#include <stdio.h>
#include <stdlib.h>
#include "lib.h"

void main(void)
{
    int errorcode;
    printf("\fSysWLANInit \r\n\n");

    errorcode = SysWLANInit (NULL);
    if(errorcode == TRUE) {
        printf("Result:TRUE\r\n");
    } else {
        printf("Result:FALSE\r\n");
    }

    printf("Please any key\r\n");
    ResetKey();
    while(!kbhit())
        Idle();        // Performs automatic connection processing within the Idle.
}

Last updated: 2020/11/24