Skip to content

Commit 3510772

Browse files
mrjerryjohnspull[bot]
authored andcommitted
Fix UTF-8 Encoding for CommissionWifi in REPL (#16408)
1 parent 845946f commit 3510772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/python/chip/ChipDeviceCtrl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def SetWiFiCredentials(self, ssid, credentials):
305305

306306
return self._ChipStack.Call(
307307
lambda: self._dmLib.pychip_DeviceController_SetWiFiCredentials(
308-
ssid, credentials)
308+
ssid.encode("utf-8"), credentials.encode("utf-8"))
309309
)
310310

311311
def SetThreadOperationalDataset(self, threadOperationalDataset):

0 commit comments

Comments
 (0)