Skip to content

Commit

Permalink
Fix UTF-8 Encoding for CommissionWifi in REPL (#16408)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjerryjohns authored and pull[bot] committed Oct 12, 2023
1 parent 3804e1b commit 1486244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/python/chip/ChipDeviceCtrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def SetWiFiCredentials(self, ssid, credentials):

return self._ChipStack.Call(
lambda: self._dmLib.pychip_DeviceController_SetWiFiCredentials(
ssid, credentials)
ssid.encode("utf-8"), credentials.encode("utf-8"))
)

def SetThreadOperationalDataset(self, threadOperationalDataset):
Expand Down

0 comments on commit 1486244

Please sign in to comment.