This section contains APIs for creating the module as a WPS enabled station

rsi_wlan_wps_push_button_event

Prototype int32_t  rsi_wlan_wps_push_button_event(int8_t *ssid);
Input Arguments int8_t *ssid: Pointer to the buffer containing the SSID of the Access Point. SSID should be same as that given in AP start API. Length of the SSID should less than or equal to 32 bytes.
Return Value None
Description This API is used to start WPS Push button in AP mode.

This API should be called in only after AP start function is success.

Example Usage rsi_wlan_wps_push_button_event (“REDPINE-AP”);

rsi_wlan_wps_generate_pin

Prototype int32_t  rsi_wlan_wps_generate_pin(uint8_t *wps_pin,

uint16_t length);

Input Arguments uint8_t *wps_pin: Pointer tho the buffer contiainig the wps pin is the 8 byte pin generated by the device .This is the output parameter.

uint16_t length: Length of the result buffer in bytes to hold wps pin.

Return Value int32_t: Error Code for failures in Wi-Fi connection or socket communication
  • 0: No failure.

       -4 : Buffer not available to serve the command

       Other: Refer to the section on Error Codes for a description of the error codes.

Description This API is used to generate WPS pin.
Example Usage rsi_wlan_wps_generate_pin (“12345678”,8);

rsi_wlan_wps_enter_pin

Prototype int32_t  rsi_wlan_wps_enter_pin(uint8_t *wps_pin);
Input Arguments uint8_t *wps_pin: Pointer tho the buffer contiainig the wps pin is the 8 byte pin to be entered.
Return Value int32_t: Error Code for failures in Wi-Fi connection or socket communication
  • 0: No failure.

       -4 : Buffer not available to serve the command

        Other: Refer to the section on Error Codes for a description of the error codes.

Description This API is used to enter a  WPS pin.
Example Usage rsi_wlan_wps_enter_pin (“12345678”);