@@ -636,7 +636,7 @@ def socket_open(self, socket_num, dest, port, conn_mode=TCP_MODE):
636636 self ._socknum_ll [0 ][0 ] = socket_num
637637 if self ._debug :
638638 print ("*** Open socket to" , dest , port , conn_mode )
639- if conn_mode == TLS_MODE and self ._tls_socket is not None :
639+ if conn_mode == ESP_SPIcontrol . TLS_MODE and self ._tls_socket is not None :
640640 raise OSError (23 ) # ENFILE - File table overflow
641641 port_param = struct .pack (">H" , port )
642642 if isinstance (dest , str ): # use the 5 arg version
@@ -658,7 +658,7 @@ def socket_open(self, socket_num, dest, port, conn_mode=TCP_MODE):
658658 )
659659 if resp [0 ][0 ] != 1 :
660660 raise RuntimeError ("Could not connect to remote server" )
661- if conn_mode == TLS_MODE :
661+ if conn_mode == ESP_SPIcontrol . TLS_MODE :
662662 self ._tls_socket = socket_num
663663
664664 def socket_status (self , socket_num ):
@@ -772,7 +772,7 @@ def socket_close(self, socket_num):
772772 print ("*** Closing socket #%d" % socket_num )
773773 self ._socknum_ll [0 ][0 ] = socket_num
774774 try :
775- resp = self ._send_command_get_response (
775+ self ._send_command_get_response (
776776 _STOP_CLIENT_TCP_CMD , self ._socknum_ll
777777 )
778778 except RuntimeError :
0 commit comments