This function is for compatibility with older versions. Do not use unless there is a special reason.
This function enables access point mode.
Syntax
signed char EnableAp(
tstrM2MAPConfig *apconfig
);
Parameters
- apconfig
- [in]A pointer to the tstrM2MAPConfig structure.
Return value
The following values will be returned.Value | Description |
---|---|
M2M_SUCCESS | Succeeded |
M2M_ERR_SLEEP_FAIL | Initialize with SysWLANInit function. |
Other than the above | Failed |
Remarks
This function can be used when SYS_WLAN_POWER_MANUAL is set by the SysSetWLANPower function.This mode accepts connections using the OPH-5000 as an access point.
Encryption supports WEP or OPEN (no encryption).
After connecting, you can perform socket communication with the connected communication device.
The WEP key length can be specified as 10 or 26. (It is different from the specification of ConnectWlan.)
(Note)
- Cannot be used together with the connection by Connect lan.
- Cannot be used as a wireless LAN router.
- Cannot share the network.
Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.a
Last updated: 2020/11/23