File tree Expand file tree Collapse file tree 4 files changed +0
-8
lines changed Expand file tree Collapse file tree 4 files changed +0
-8
lines changed Original file line number Diff line number Diff line change 53
53
__version__ = "0.0.0-auto.0"
54
54
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k.git"
55
55
56
- # pylint: disable=bad-whitespace
57
56
58
57
# Wiznet5k Registers
59
58
REG_MR = const (0x0000 ) # Mode
124
123
SNMR_MACRAW = const (0x04 )
125
124
SNMR_PPPOE = const (0x05 )
126
125
127
- # pylint: enable=bad-whitespace
128
126
MAX_PACKET = const (4000 )
129
127
LOCAL_PORT = const (0x400 )
130
128
# Default hardware MAC address
Original file line number Diff line number Diff line change 36
36
import adafruit_wiznet5k .adafruit_wiznet5k_socket as socket
37
37
from adafruit_wiznet5k .adafruit_wiznet5k_socket import htonl , htons
38
38
39
- # pylint: disable=bad-whitespace
40
39
41
40
# DHCP State Machine
42
41
STATE_DHCP_START = const (0x00 )
87
86
OPT_END = 255
88
87
89
88
90
- # pylint: enable=bad-whitespace
91
89
_BUFF = bytearray (317 )
92
90
93
91
Original file line number Diff line number Diff line change 36
36
import adafruit_wiznet5k .adafruit_wiznet5k_socket as socket
37
37
from adafruit_wiznet5k .adafruit_wiznet5k_socket import htons
38
38
39
- # pylint: disable=bad-whitespace
40
39
41
40
QUERY_FLAG = const (0x00 )
42
41
OPCODE_STANDARD_QUERY = const (0x00 )
54
53
INVALID_RESPONSE = const (- 4 )
55
54
56
55
DNS_PORT = const (0x35 ) # port used for DNS request
57
- # pylint: enable=bad-whitespace
58
56
59
57
60
58
class DNS :
Original file line number Diff line number Diff line change @@ -58,13 +58,11 @@ def htons(x):
58
58
return (((x ) << 8 ) & 0xFF00 ) | (((x ) >> 8 ) & 0xFF )
59
59
60
60
61
- # pylint: disable=bad-whitespace
62
61
SOCK_STREAM = const (0x21 ) # TCP
63
62
TCP_MODE = 80
64
63
SOCK_DGRAM = const (0x02 ) # UDP
65
64
AF_INET = const (3 )
66
65
NO_SOCKET_AVAIL = const (255 )
67
- # pylint: enable=bad-whitespace
68
66
69
67
# keep track of sockets we allocate
70
68
SOCKETS = []
You can’t perform that action at this time.
0 commit comments