Skip to content

Commit

Permalink
Merge pull request project-chip#131 from fkjagodzinski/fix-apk
Browse files Browse the repository at this point in the history
apk: Fix sendWiFiCredentials()
  • Loading branch information
Filip Jagodziński authored Mar 31, 2021
2 parents e6ed939 + bdcc7e5 commit 7300d04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/controller/java/CHIPDeviceController-JNI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,10 @@ JNI_METHOD(void, sendWiFiCredentials)(JNIEnv * env, jobject self, jlong handle,
JniUtfString passwordStr(env, password);

ChipLogProgress(Controller, "Sending Wi-Fi credentials for: %s", ssidStr.c_str());
AndroidDeviceControllerWrapper::FromJNIHandle(handle)->SendNetworkCredentials(ssidStr.c_str(), passwordStr.c_str());
{
ScopedPthreadLock lock(&sStackLock);
AndroidDeviceControllerWrapper::FromJNIHandle(handle)->SendNetworkCredentials(ssidStr.c_str(), passwordStr.c_str());
}
}

JNI_METHOD(void, sendThreadCredentials)
Expand Down

0 comments on commit 7300d04

Please sign in to comment.