Skip to content

Commit c32ac22

Browse files
brentrubrentru
authored andcommitted
add memory addreses for client cert/pk methods
1 parent 774710c commit c32ac22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_esp32spi/adafruit_esp32spi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
_SET_ENT_UNAME_CMD = const(0x4B)
9595
_SET_ENT_PASSWD_CMD = const(0x4C)
9696
_SET_ENT_ENABLE_CMD = const(0x4F)
97-
_SET_CLI_CERT = const(0x00) # TODO: Decl in nina-fw handler.
98-
_SET_PK = const(0x00) # TODO: Decl in nina-fw handler.
97+
_SET_CLI_CERT = const(0x40)
98+
_SET_PK = const(0x41)
9999

100100
_SET_PIN_MODE_CMD = const(0x50)
101101
_SET_DIGITAL_WRITE_CMD = const(0x51)
@@ -790,7 +790,7 @@ def get_time(self):
790790
raise RuntimeError("Must be connected to WiFi before obtaining NTP.")
791791

792792
def set_certificate(self, client_certificate):
793-
"""Sets client certificate. Must be called and set
793+
"""Sets client certificate. Must be called
794794
BEFORE a network connection is established.
795795
Begins with -----BEGIN CERTIFICATE-----.
796796
:param str client_certificate: User-provided client certificate.
@@ -807,7 +807,7 @@ def set_certificate(self, client_certificate):
807807
return resp[0]
808808

809809
def set_private_key(self, private_key):
810-
"""Sets client certificate. Must be called and set
810+
"""Sets private key. Must be called
811811
BEFORE a network connection is established.
812812
:param str private_key: User-provided private key.
813813
"""

0 commit comments

Comments
 (0)