Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
C++

Wi-Fi management from applications using C++Builder

Author: h.mohri

Using C++Builder 10.2 Tokyo, explain how to switch Wi-Fi on Android.

Manage Wi-Fi switching using JWifiManager

I use di_JWifiManager which wrapped WifiManager.
di_JWifiManager is the Delphi interface.
Set the variable. _di_JWifiManager f_WifiManager; use it like this.

Required headers

Header file for using WifiManager.

Display design

It is a design for displaying on Android.


TEditTSwitchTTimerTLabel, was placed.

 

When the main form creation

Create _di_JWifiManager using TJWifiManager.

Monitor Wi-Fi status at Timer1 event.

When you tap the Switch1.

Change the Wi-Fi status when tapping the Switch1.
This uses the setWifiEnabled() function.

 

https://github.com/mojeld/cpp_builder_firemonkey_wifi

 


What's New for RAD Studio 11

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Related posts
News

ZXing.Delphi (Zebra Crossing) Tested with RAD 11 for Android and iOS

DelphiNews

How To Get The DelphiCon 2021 Desktop Wallpaper

DelphiShowcase

Get To Know This Industry-Leading Mobile Lighting Delphi App

DelphiShowcase

Do You Know The German Word For "Sauerkraut"?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES