From d26c16acafc26fa7c0f044d54f5f4fc9ef88dc1e Mon Sep 17 00:00:00 2001 From: PAGpK Date: Tue, 31 May 2022 09:42:55 +0200 Subject: [PATCH] second correction for issue #123 --- GreenPonik_BLE/gattserver.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/GreenPonik_BLE/gattserver.py b/GreenPonik_BLE/gattserver.py index c925a42..d386450 100644 --- a/GreenPonik_BLE/gattserver.py +++ b/GreenPonik_BLE/gattserver.py @@ -82,10 +82,7 @@ def __init__(self, index): elif "psk" in x: self.pwd = x.split('"')[-2] elif "country" in x: - self.country = x.split('=')[-1] - self.ssid = "ssid_init" - self.pwd = "pwd_init" - self.country = "country_init" + self.country = x.split('=')[-1].strip('\n') self.wifichange = False Service.__init__(self, index, self.JSON_SVC_UUID, True) self.add_characteristic(JsonCharacteristic(self))