|
66 | 66 | _SCAN_NETWORKS = const(0x27)
|
67 | 67 | _GET_SOCKET_CMD = const(0x3F)
|
68 | 68 | _GET_STATE_TCP_CMD = const(0x29)
|
69 |
| -_DATA_SENT_TCP_CMD = const(0x2A) |
70 |
| -_AVAIL_DATA_TCP_CMD = const(0x2B) |
71 |
| -_GET_DATA_TCP_CMD = const(0x2C) |
| 69 | +_DATA_SENT_TCP_CMD = const(0x2A) |
| 70 | +_AVAIL_DATA_TCP_CMD = const(0x2B) |
| 71 | +_GET_DATA_TCP_CMD = const(0x2C) |
72 | 72 | _START_CLIENT_TCP_CMD = const(0x2D)
|
73 | 73 | _STOP_CLIENT_TCP_CMD = const(0x2E)
|
74 | 74 | _GET_CLIENT_STATE_TCP_CMD = const(0x2F)
|
75 |
| -_DISCONNECT_CMD = const(0x30) |
| 75 | +_DISCONNECT_CMD = const(0x30) |
76 | 76 | _GET_IDX_RSSI_CMD = const(0x32)
|
77 | 77 | _GET_IDX_ENCT_CMD = const(0x33)
|
78 | 78 | _REQ_HOST_BY_NAME_CMD = const(0x34)
|
79 | 79 | _GET_HOST_BY_NAME_CMD = const(0x35)
|
80 | 80 | _START_SCAN_NETWORKS = const(0x36)
|
81 | 81 | _GET_FW_VERSION_CMD = const(0x37)
|
82 |
| -_PING_CMD = const(0x3E) |
| 82 | +_PING_CMD = const(0x3E) |
83 | 83 |
|
84 | 84 | _SEND_DATA_TCP_CMD = const(0x44)
|
85 | 85 | _GET_DATABUF_TCP_CMD = const(0x45)
|
@@ -612,6 +612,8 @@ def socket_connect(self, socket_num, dest, port, conn_mode=TCP_MODE):
|
612 | 612 |
|
613 | 613 | def socket_close(self, socket_num):
|
614 | 614 | """Close a socket using the ESP32's internal reference number"""
|
| 615 | + if self._debug: |
| 616 | + print("*** Closing socket #%d" % socket_num) |
615 | 617 | self._socknum_ll[0][0] = socket_num
|
616 | 618 | resp = self._send_command_get_response(_STOP_CLIENT_TCP_CMD, self._socknum_ll)
|
617 | 619 | if resp[0][0] != 1:
|
|
0 commit comments