# Configure WiFi via Bluetooth (CUSTOM APP)

**URL:** <https://forum.amebaiot.com/t/configure-wifi-via-bluetooth-custom-app/3110>\
**Category:** WiFi\
**Tags:** evb-amb82\
**Created:** [July 14, 2024, 2:39pm UTC](https://forum.amebaiot.com/t/configure-wifi-via-bluetooth-custom-app/3110 "2024-07-14T14:39:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Thomsen](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/tom_thomsen/32/2183_2.png) [@Tom\_Thomsen](https://forum.amebaiot.com/u/Tom_Thomsen)\
**Post date:** [July 14, 2024, 2:39pm UTC](https://forum.amebaiot.com/t/configure-wifi-via-bluetooth-custom-app/3110/1 "2024-07-14T14:39:37Z")

</div>

Hello,

I don’t want to use the app made by Realtek to configure my Amb82-Mini’s WiFi settings as I want to build my own app for it. However, whenever I send the WiFi configuration command, it just serial outs  
“Invalid Command  
Invalid Command”

Here is the command that I’m sending to the device: setWiFi:(ssid),(password)\n

Replacing ssid and password obviously. Any help on what command/format it’s expecting would be appreciated. Thank you!

---

<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:** [July 15, 2024, 5:46am UTC](https://forum.amebaiot.com/t/configure-wifi-via-bluetooth-custom-app/3110/2 "2024-07-15T05:46:38Z")

</div>

You may want to refer to [WiFi and BLE API](https://www.amebaiot.com/en/rtl8735b-arduino-online-api-documents/), [example guide](https://www.amebaiot.com/en/amebapro2-arduino-ble-wifi-configuration/), and [source code](https://github.com/ambiot/ambpro2_arduino/blob/dev/Arduino_package/hardware/libraries/BLE/examples/BLEWifiConfig/BLEWifiConfig.ino)

---

<div class="post-metadata">

**Author:** ![Tom\_Thomsen](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/tom_thomsen/32/2183_2.png) [@Tom\_Thomsen](https://forum.amebaiot.com/u/Tom_Thomsen)\
**Post date:** [July 15, 2024, 9:25pm UTC](https://forum.amebaiot.com/t/configure-wifi-via-bluetooth-custom-app/3110/3 "2024-07-15T21:25:55Z")

</div>

Hello Michael,

Thank you for your reply. However, the documentation you provided is for use with their app. I want to use my own app to configure it, and no where does it say what commands you need to send to configure WiFi.

---

<div class="post-metadata">

**Author:** ![Ameer\_Hamza](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/ameer_hamza/32/2178_2.png) [@Ameer\_Hamza](https://forum.amebaiot.com/u/Ameer_Hamza)\
**Post date:** [July 17, 2024, 1:48am UTC](https://forum.amebaiot.com/t/configure-wifi-via-bluetooth-custom-app/3110/4 "2024-07-17T01:48:17Z")

</div>

It seems the command format you’re sending is incorrect. The Amb82-Mini likely expects a different syntax. Try the following format:setWiFi ssid,password\n  
If this doesn’t work, consult the device’s documentation for the exact command format.

---

<div class="post-metadata">

**Author:** ![Tom\_Thomsen](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/tom_thomsen/32/2183_2.png) [@Tom\_Thomsen](https://forum.amebaiot.com/u/Tom_Thomsen)\
**Post date:** [July 17, 2024, 9:33pm UTC](https://forum.amebaiot.com/t/configure-wifi-via-bluetooth-custom-app/3110/5 "2024-07-17T21:33:14Z")

</div>

Hello Ameer,

Thank you for your reply. I made it send the WiFi configuration to my AMB82-Mini in this format: setWiFi \ssid,\password\n.

However, it still serial outs:

"Invalid command

Invalid command"

And I don’t know which documentation to look at as it all just says to use their app, but I don’t want to. I want to integrate the feature into my own app.

Thank you,

---

<div class="post-metadata">

**Author:** ![Ameer\_Hamza](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/ameer_hamza/32/2178_2.png) [@Ameer\_Hamza](https://forum.amebaiot.com/u/Ameer_Hamza)\
**Post date:** [July 25, 2024, 6:04am UTC](https://forum.amebaiot.com/t/configure-wifi-via-bluetooth-custom-app/3110/6 "2024-07-25T06:04:12Z")

</div>

Hello Tom  
Look for the AMB82-Mini’s API documentation or firmware reference guide for direct configuration commands. Check the manufacturer’s website or developer community for detailed instructions.  
Thank you,
