Comments (2)
EspTouch Api support to post custom SSID.
public EsptouchTask(byte[] apSsid, byte[] apBssid, byte[] apPassword, Context context)
In our demo App, you can change the SSID widget(id = ap_ssid_text) from TextView to EditText in the layout xml.
<EditText
android:id="@+id/ap_ssid_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginLeft="4dp"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceMedium"
app:layout_constraintStart_toEndOf="@id/ap_ssid_label"
app:layout_constraintTop_toTopOf="parent" />
And set SSID data from EditText in function public void onClick(View v)
int our Activity
@Override
public void onClick(View v) {
if (v == mConfirmBtn) {
byte[] ssid = ByteUtil.getBytesByString(mApSsidTV.getText().toString());
byte[] password = ByteUtil.getBytesByString(mApPasswordET.getText().toString());
byte[] bssid = TouchNetUtil.parseBssid2bytes(mApBssidTV.getText().toString());
byte[] deviceCount = mDeviceCountET.getText().toString().getBytes();
byte[] broadcast = {(byte) (mPackageModeGroup.getCheckedRadioButtonId() == R.id.package_broadcast
? 1 : 0)};
if (mTask != null) {
mTask.cancelEsptouch();
}
mTask = new EsptouchAsyncTask4(this);
mTask.execute(ssid, bssid, password, deviceCount, broadcast);
}
}
from esptouchforandroid.
thank, but use can not know bssid, but this requite bssid. On ios, bssid not requite, why it requite on android?
from esptouchforandroid.
Related Issues (20)
- Android APP 在水星路由器下配网失败!IOS 却可以 HOT 2
- android打包报错 HOT 1
- Class file has wrong version 55.0, should be 52.0 HOT 1
- 多模组同时配网 HOT 1
- 返回ip地址 HOT 1
- 编译不通过,导包都正常 HOT 1
- 5g频段wifi HOT 1
- 智能配网 HOT 4
- LocalOnlyHotspot fail to send socket
- ESPTouch For Flutter Support HOT 1
- Sometimes the device is not Scanning/Connecting HOT 4
- 请问ESP8266怎么使用esptouchV2 HOT 2
- Can this work without Location access HOT 1
- 使用V2版本的aesKey加密配网的疑问? HOT 2
- Send Data from esp to Android HOT 1
- b4a
- 配网失败 HOT 2
- how to get custom data from phone to esp32 via ESPTouch V2 HOT 1
- Esptouch v2 for esp8266
- ESPTouch V1 Cannot Configure Any ESP32 Device
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esptouchforandroid.