Hi all,
In B4A, it's possible to use the Simple Wifi library here – https://www.b4x.com/android/forum/threads/simple-wifi-library-updated-v-3-07-09-05-2018.76233/ (which is based on the MLwifi library) to get all kinds of information about the Wifi connection, which I can't find in B4i.
I've seen that it's possible in B4i to find out if the Wifi is connected to a network by calling ServerSocket.GetMyWifiIp, as it returns "127.0.0.1" if not connected, but there are a number of other things that I've done in B4A that I can't find out how to do in B4i (or if they are possible), specifically:
- Detect if the phone's Wifi is switched on (not whether it is connected to a network)
- Get the signal strength, either in decibels or as a percentage
- Ping an IP address to see if it is online
Any ideas?
In B4A, it's possible to use the Simple Wifi library here – https://www.b4x.com/android/forum/threads/simple-wifi-library-updated-v-3-07-09-05-2018.76233/ (which is based on the MLwifi library) to get all kinds of information about the Wifi connection, which I can't find in B4i.
I've seen that it's possible in B4i to find out if the Wifi is connected to a network by calling ServerSocket.GetMyWifiIp, as it returns "127.0.0.1" if not connected, but there are a number of other things that I've done in B4A that I can't find out how to do in B4i (or if they are possible), specifically:
- Detect if the phone's Wifi is switched on (not whether it is connected to a network)
- Get the signal strength, either in decibels or as a percentage
- Ping an IP address to see if it is online
Any ideas?