構成が渡された状態でワイヤレスネットワークに接続するAndroid用のアプリケーションを作成しています。私はこれに従いましたAndroidでWEP/EAP WiFi構成をプログラムで作成して読み取る方法は?、WEPネットワークに接続しますが、機能しません。Wifi設定で接続すると問題なく接続します。プログラムで追加されたネットワークとWifi設定によって追加されたネットワークからWifiConfigurationを分析すると、違いはIP割り当てとプロキシ設定です。
# ProgrammaticallyAdded #
ID: 8 SSID: "quickframe" BSSID: null PRIO: 40
KeyMgmt: NONE Protocols: WPA RSN
AuthAlgorithms: OPEN SHARED
PairwiseCiphers: TKIP CCMP
GroupCiphers: WEP40 WEP104 TKIP CCMP
PSK:
eap:
phase2:
identity:
anonymous_identity:
password:
client_cert:
private_key:
ca_cert:
IP assignment: UNASSIGNED
Proxy settings: UNASSIGNED
LinkAddresses: [] Routes: [] DnsAddresses: []
# Added by Wifi Settings #
ID: 8 SSID: "quickframe" BSSID: null PRIO: 17
KeyMgmt: NONE Protocols: WPA RSN
AuthAlgorithms: OPEN SHARED
PairwiseCiphers: TKIP CCMP
GroupCiphers: WEP40 WEP104 TKIP CCMP
PSK:
eap:
phase2:
identity:
anonymous_identity:
password:
client_cert:
private_key:
ca_cert:
IP assignment: DHCP
Proxy settings: NONE
LinkAddresses: [192.168.0.89/24,] Routes: [0.0.0.0/0 -> 192.168.0.1,] DnsAddresses: [143.106.2.5,143.106.2.2,]
また、リフレクションによってIP割り当てとプロキシ設定を追加しようとしました。しかし、それも機能しませんでした。
ID: 8 SSID: "quickframe" BSSID: null PRIO: 0
KeyMgmt: NONE Protocols: WPA RSN
AuthAlgorithms: OPEN SHARED
PairwiseCiphers: TKIP CCMP
GroupCiphers: WEP40 WEP104 TKIP CCMP
PSK:
eap:
phase2:
identity:
anonymous_identity:
password:
client_cert:
private_key:
ca_cert:
IP assignment: DHCP
Proxy settings: NONE
LinkAddresses: [] Routes: [] DnsAddresses: []
IPとプロキシの設定を取得する方法を知っている人はいますか?これらのデータがつながりを可能にすると思います。
ありがとう!