# How to set an WiFi11 Click (BW16) Access Point (AP) in security mode

**URL:** <https://forum.amebaiot.com/t/how-to-set-an-wifi11-click-bw16-access-point-ap-in-security-mode/2038>\
**Category:** WiFi\
**Tags:** evb-bw16, rtl872xd\
**Created:** [July 4, 2023, 5:36am UTC](https://forum.amebaiot.com/t/how-to-set-an-wifi11-click-bw16-access-point-ap-in-security-mode/2038 "2023-07-04T05:36:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dallim30](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@dallim30](https://forum.amebaiot.com/u/dallim30)\
**Post date:** [July 4, 2023, 5:36am UTC](https://forum.amebaiot.com/t/how-to-set-an-wifi11-click-bw16-access-point-ap-in-security-mode/2038/1 "2023-07-04T05:36:47Z")

</div>

Hello.

I can’t turn on the AP mode in security mode  
An error occured when I am running example  
(Open the WiFi AP example, “File” → “Examples” → “WiFi” → “WiFiAPMode”)

- Platform : Arduino
- Power : USB
- Amebad : 3.1.6

char ssid[] = "2203KR0202-0039"; char pass[] = "xxxxxxxxxx"; char channel[] = "1"; 1. Security mode : WiFi.apbegin(ssid, pass, channel, ssid\_status); \<-- got the error 2. Open Mode : WiFi.apbegin(ssid, channel); \<-- work well

if anyone have solution to my problem it’d be really helpful…

[2023-07-04 13:47:34.210] #calibration\_ok:[2:19:11]  
[2023-07-04 13:47:34.260] Attempting to start AP with SSID: 2203KR0202-0039  
[2023-07-04 13:47:34.260] interface 0 is initialized  
[2023-07-04 13:47:34.280] interface 1 is initialized  
[2023-07-04 13:47:34.280]  
[2023-07-04 13:47:34.280] Initializing WIFI …  
[2023-07-04 13:47:34.430]  
[2023-07-04 13:47:34.430] WIFI initialized  
[2023-07-04 13:47:34.430] IPv4 enabled  
[2023-07-04 13:47:34.430]  
[2023-07-04 13:47:34.430] Starting AP (0x400004) …  
[2023-07-04 13:47:35.160] Hard Fault Error!!!  
[2023-07-04 13:47:35.160]  
[2023-07-04 13:47:35.160] R0 = 0x1  
[2023-07-04 13:47:35.160] R1 = 0x0  
[2023-07-04 13:47:35.160] R2 = 0x0  
[2023-07-04 13:47:35.160] R3 = 0x0  
[2023-07-04 13:47:35.160] R12 = 0x40080124  
[2023-07-04 13:47:35.160] LR = 0xc00f7c9  
[2023-07-04 13:47:35.160] PC = 0xbc0b5b4  
[2023-07-04 13:47:35.160] xPSR = 0x4100022a  
[2023-07-04 13:47:35.160]  
[2023-07-04 13:47:35.160] PriMask: 0x0  
[2023-07-04 13:47:47.316]  
[2023-07-04 13:47:47.316] #calibration\_ok:[2:19:11]  
[2023-07-04 13:47:47.386] Attempting to start AP with SSID: 2203KR0202-0039  
[2023-07-04 13:47:47.386] interface 0 is initialized  
[2023-07-04 13:47:47.386] interface 1 is initialized  
[2023-07-04 13:47:47.386]  
[2023-07-04 13:47:47.386] Initializing WIFI …  
[2023-07-04 13:47:47.536]  
[2023-07-04 13:47:47.536] WIFI initialized  
[2023-07-04 13:47:47.536] IPv4 enabled  
[2023-07-04 13:47:47.536]  
[2023-07-04 13:47:47.536]  
[2023-07-04 13:47:47.536]  
[2023-07-04 13:47:47.536] Starting AP (0x400004) …  
[2023-07-04 13:47:48.335]  
[2023-07-04 13:47:48.335] 2203KR0202-0039 started  
[2023-07-04 13:48:00.987]  
[2023-07-04 13:48:00.987] #calibration\_ok:[2:19:11]  
[2023-07-04 13:48:01.050] Attempting to start AP with SSID: 2203KR0202-0039  
[2023-07-04 13:48:01.050] interface 0 is initialized  
[2023-07-04 13:48:01.050] interface 1 is initialized  
[2023-07-04 13:48:01.050]  
[2023-07-04 13:48:01.050]  
[2023-07-04 13:48:01.050] Initializing WIFI …  
[2023-07-04 13:48:01.200]  
[2023-07-04 13:48:01.200] WIFI initialized  
[2023-07-04 13:48:01.200] IPv4 enabled  
[2023-07-04 13:48:01.200]  
[2023-07-04 13:48:01.200]  
[2023-07-04 13:48:01.200]  
[2023-07-04 13:48:01.200] Starting AP (0x400004) …  
[2023-07-04 13:48:02.014]  
[2023-07-04 13:48:02.014] 2203KR0202-0039 started  
[2023-07-04 13:48:07.363]  
[2023-07-04 13:48:07.363] #calibration\_ok:[2:19:11]  
:  
:

---

<div class="post-metadata">

**Author:** ![M-ichae-l](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/m-ichae-l/32/33_2.png) [@M-ichae-l](https://forum.amebaiot.com/u/M-ichae-l)\
**Post date:** [August 13, 2024, 3:10am UTC](https://forum.amebaiot.com/t/how-to-set-an-wifi11-click-bw16-access-point-ap-in-security-mode/2038/2 "2024-08-13T03:10:04Z")

</div>

Please refer to the new Github repo

> **[GitHub - Ameba-AIoT/ameba-rtos-d: AmebaD SoC SDK](https://github.com/Ameba-AIoT/ameba-rtos-d)**
>
> AmebaD SoC SDK
