Commit 5a587c2
authored
fix .server_state()attribute name
```
...
socket.set_interface(esp)
ss = socket.socket()
esp.start_server(PORT, ss.socknum)
print("Server status: ", esp.server_state(ss.socknum))
print("Server status: ", esp.get_server_state(ss.socknum))
```
yields
```
Server status: 1
Traceback (most recent call last):
File "code.py", line 76, in <module>
AttributeError: 'ESP_SPIcontrol' object has no attribute 'get_server_state'
```1 parent d3e7a58 commit 5a587c2
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments