Matt Costi
473f850858
fix PATH_INFO when there are query params
2019-07-21 22:37:23 -04:00
Matt Costi
e6bfd362a3
remove wifimanager debug arg
...
- Already in ap_mode branch
2019-07-21 22:31:54 -04:00
Matt Costi
eb1a8b0fe0
wrap argument list instead of disabling lint rule
2019-07-21 22:27:32 -04:00
Matt Costi
d1c581fcce
Merge branch 'master' of https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI into ap_mode
2019-07-21 17:29:53 -04:00
Matt Costi
917ef2dd5d
Address PR comments
2019-07-21 17:18:18 -04:00
Matt Costi
41eab1cccf
PATH_INFO shouldn't contain query params
2019-07-21 14:45:17 -04:00
Matt Costi
4f3d07f43d
fix file name. adafruite -> adafruit
2019-07-21 14:31:06 -04:00
Matt Costi
c2b7cb065f
Address PR comments for adafruit_esp32spi.py
2019-07-21 14:11:43 -04:00
Matt Costi
842ac464e1
Remove server.py in favor of new wsgiserver.py
2019-07-21 14:11:10 -04:00
Matt Costi
6af7675053
Merge branch 'master' of https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI into server
2019-07-21 13:44:33 -04:00
Matt Costi
c429455f57
send response headers separately before body to support chunking
2019-07-21 13:24:13 -04:00
Matt Costi
94fce446aa
fix a couple wsgi server bugs
2019-07-20 22:08:27 -04:00
Matt Costi
d469ab99a5
untested first draft of simple WSGI server
2019-07-20 00:51:00 -04:00
Dustin Mollo
5c7a735c65
more fix-ups from rebase; fixed param defs in __init__
2019-07-14 16:14:26 -07:00
Dustin Mollo
bb679e8d8f
fix a regression due to the rebase'ing...
2019-07-14 16:08:38 -07:00
Matt Costi
5bd6c86f18
add in support for automatically serving files from a specified directory
2019-07-14 17:53:26 -04:00
Matt Costi
b8fd02eaec
more linting
2019-07-14 12:03:21 -04:00
Matt Costi
8c4035d80d
py linting
2019-07-14 11:44:13 -04:00
Matt Costi
faf031acd7
add simple request method handling
...
- can register callbacks on specific HTTP methods and paths
- Can call update_poll in event loop to check for new incoming requests
- update server example script
2019-07-13 20:54:48 -04:00
Dustin Mollo
7bc0ec6664
merged conflicts
2019-07-13 12:05:33 -07:00
Dustin Mollo
5931c1ba1e
merged conflicts
2019-07-13 12:05:13 -07:00
Dustin Mollo
0c07ceb51c
merged conflicts
2019-07-13 12:02:08 -07:00
Dustin Mollo
447955a76f
merged conflicts
2019-07-13 12:00:07 -07:00
Dustin Mollo
cbc790133d
merged conflicts
2019-07-13 11:56:19 -07:00
Dustin Mollo
bce6bfa28b
merged conflicts
2019-07-13 11:55:01 -07:00
Dustin Mollo
a492dda93d
merged conflicts
2019-07-13 11:53:09 -07:00
Dustin Mollo
1e77ef5e54
merged conflicts
2019-07-13 11:50:22 -07:00
Matt Costi
5e09b7b867
Add server class to handle server start and get connected clients
2019-07-13 12:52:20 -04:00
Matt Costi
5b281189d5
separate server code from AP code
2019-07-13 09:45:47 -04:00
Matt Costi
7c1eaacb27
Merge branch 'master' of https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI into ap_mode
2019-07-12 18:44:40 -04:00
siddacious
8f964cc747
Merge pull request #29 from martymcguire/mm-chunk-socket-sends
...
Chunk buffer sends into 64 byte chunks
2019-07-11 09:23:27 -07:00
brentru
54bcb5a53a
make ._esp public
2019-07-11 12:06:53 -04:00
Matt Costi
f67a2e4ef1
tabs -> spaces
2019-07-10 23:00:18 -04:00
Matt Costi
d0ee4954bd
appease pylint
2019-07-10 22:55:11 -04:00
Matt Costi
f6e16950ea
Add more docs and fix linting
2019-07-10 22:43:46 -04:00
Matt Costi
02477df464
Revert "attempt at start_server method"
...
This reverts commit c72cd97f02 .
2019-07-10 22:11:54 -04:00
Matt Costi
06d7bd1e50
Revert "Working hello world server example"
...
This reverts commit ea630d27d1 .
2019-07-10 22:11:52 -04:00
Matt Costi
832b79be3f
Revert "fix spacing"
...
This reverts commit 130f966af9 .
2019-07-10 22:11:48 -04:00
Matt Costi
130f966af9
fix spacing
2019-07-07 17:32:57 -04:00
Matt Costi
ea630d27d1
Working hello world server example
2019-07-07 17:32:30 -04:00
Matt Costi
c72cd97f02
attempt at start_server method
2019-07-05 20:34:44 -04:00
Matt Costi
45cf5c1df7
- Can now create AP w/out passphrase
...
- channel needed to be in hex byte format.
- Add begining of a server example example program.
- TODO: figure out why cannot create AP w/ passphrase
2019-07-05 12:54:34 -04:00
mscosti
b9befbf6d6
add access point creation SPI commands and wifimanager helper
2019-06-29 00:37:14 -04:00
brentru
aeae91ec1d
test the pixel attributes within pixel_status
2019-06-11 12:11:30 -04:00
brentru
d21b70993a
add an externally defined rgbled status_led to _wifimanager
2019-06-11 10:32:35 -04:00
brentru
596b879ab4
frequency should return, not raise
2019-06-07 11:17:02 -04:00
brentru
c91622442b
set freq
2019-06-07 11:14:12 -04:00
brentru
64ca443967
correct pin in attrerror, fixup docstrings
2019-06-07 11:00:38 -04:00
brentru
6fcb231a47
Adding pwmout back in
2019-06-07 10:45:45 -04:00
brentru
8599c0124b
add credit to where credit is due :)
2019-06-06 17:16:23 -04:00
brentru
4923344d95
checking in digitalio, ready
2019-06-06 16:30:27 -04:00
brentru
6a0c036995
pylinting - 8.79/10, look at drivemode/direction classes...
2019-06-06 15:31:49 -04:00
brentru
5e97cb1fcd
add switch_to_x methods, docstrings
2019-06-06 15:01:22 -04:00
brentru
00e7f97453
drop all pull functionality since we dont have it defined in adafruit_esp32spi.py
2019-06-06 13:01:43 -04:00
brentru
777289474f
add valid pin tupleset check before initialization, raise error
2019-06-06 12:44:53 -04:00
brentru
4df8144a91
add first mock api, blinks!
2019-06-06 11:53:59 -04:00
anecdata
c25157e6b1
Make timeout a keyword argument
2019-06-04 09:47:09 -05:00
Limor "Ladyada" Fried
ac4aee5d8a
Merge pull request #42 from ZachNo/socket_hang_fix
...
Fixed infinite loop when socket readline fails
2019-05-24 20:27:05 -04:00
Zachary N
bf54a08358
Update adafruit_esp32spi/adafruit_esp32spi_socket.py
...
Co-Authored-By: Craig <cpforbes@starlake.org>
2019-05-18 22:43:18 -07:00
Craig Forbes
83f46d289b
Fix timeout handling in socket.read(). A timeout of zero will now block as
...
documented.
Handle optional parameter conntype in socket.connect().
2019-05-10 15:28:48 -05:00
Zach Nofz
79425a6879
Fixed infinite loop when socket readline fails
...
In certain cases, the socket may not receive a full response (or any
response), causing the while loop in readline to go on forever. After
failing to receive any data, this fix will raise an exception and fail
out.
2019-05-06 00:02:07 -07:00
Craig Forbes
4ebc502faf
Fix import so debug works in ESPSPI_WiFiManager.
...
Made status_pixed optional to match docs.
2019-04-25 21:09:15 -05:00
Craig Forbes
11c2bfbc2a
Fix socket leak when exception is raised in request.
...
Added __enter__ and __exit__ to Response for as with context manager.
2019-04-25 21:09:15 -05:00
Craig Forbes
86c29847f0
Add debug print in socket_close. Remove tab characters.
2019-04-25 21:09:15 -05:00
Craig Forbes
fcf5feb085
Fix pylint complaints.
2019-04-22 20:46:47 -05:00
Craig Forbes
c713122344
Add commands for setting GPIO pins.
2019-04-22 20:07:44 -05:00
Craig Forbes
98cfc0e89b
Add set_esp_debug command to enable debugging on the ESP32.
2019-04-22 20:05:16 -05:00
Dustin Mollo
a9fd632545
Added support for WPA2 Enterprise, including example code.
2019-04-05 10:02:55 -07:00
Marty McGuire
9cade63776
rm temp vars. replace buffer slice w/ memoryview.
2019-03-13 17:59:05 -04:00
Marty McGuire
8e65459485
Chunk buffer sends into 64 byte chunks
...
Prevents errors with unsent data on large header values, long URL paths
2019-03-13 15:41:38 -04:00
anecdata
c35d7fb3c4
Encode header string components to (ASCII) bytes.
2019-03-09 13:46:25 -06:00
Melissa LeBlanc-Williams
bdd0b5e724
Clear the headers in the init
2019-03-08 16:54:28 -08:00
Melissa LeBlanc-Williams
aaa5631a6c
Merge pull request #17 from brentru/update-comments-for-pixel
...
Change neopixel comments to pixel
2019-02-26 19:45:09 -08:00
Melissa LeBlanc-Williams
f4052883a1
Merge pull request #18 from brentru/expose-rssi
...
expose rssi from a method in wifimanager
2019-02-26 19:44:30 -08:00
brentru
3ad86b37c6
switch to status led
2019-02-26 22:04:44 -05:00
brentru
ce5a9f507a
expose rssi from a method in wifimanager
2019-02-26 18:53:00 -05:00
brentru
1fee9ce300
neopixel->pixel in comments
2019-02-26 18:44:33 -05:00
brentru
6ce69bde35
expose the IP address from wifimanager
2019-02-26 18:33:18 -05:00
Melissa LeBlanc-Williams
24e42bad50
Linting
2019-02-26 10:51:40 -08:00
Melissa LeBlanc-Williams
93545d741b
Fixed docstring for neopixel
2019-02-26 10:48:08 -08:00
Melissa LeBlanc-Williams
d1a3a4281f
Abstracted Status Pixel to make DotStar usable
2019-02-26 09:59:47 -08:00
ladyada
1434532c71
update settings to secrets
2019-02-23 17:23:51 -05:00
ladyada
82317c85f9
add docstring for timeout
2019-02-23 17:19:48 -05:00
ladyada
4c01b8dd86
dox and packet size
2019-02-23 17:19:48 -05:00
Dan Halbert
4f65676ec6
import either json or ujson
2019-02-21 17:35:40 -05:00
Melissa LeBlanc-Williams
2bd2a3b9d2
Changed WiFi is use to blue because yellow can mean safe mode/error
2019-02-19 09:40:52 -08:00
Melissa LeBlanc-Williams
41f7c256e1
Small bug fix
2019-02-19 08:52:18 -08:00
Melissa LeBlanc-Williams
b878f96583
Removed attempt code from get/post. Examples reset.
2019-02-19 08:49:42 -08:00
Melissa LeBlanc-Williams
73c4a56ba8
Merge branch 'master' of https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI
2019-02-19 08:15:36 -08:00
brentru
ef08587ff1
expose put/patch/delete methods from _requests in _wifimanager
2019-02-19 10:26:22 -05:00
Melissa LeBlanc-Williams
4b56b5403a
Actually saved before pushing code this time
2019-02-18 11:15:30 -08:00
Melissa LeBlanc-Williams
cd633725d2
Added reset to the get and post methods on error
2019-02-18 10:59:11 -08:00
Melissa LeBlanc-Williams
3034250354
Fixed error introduced from Linting
2019-02-18 10:12:45 -08:00
Melissa LeBlanc-Williams
8be610cd4b
Linting
2019-02-18 09:51:29 -08:00
Melissa LeBlanc-Williams
a7b8d4aa8c
Added reset after a certain number of attempts
2019-02-18 09:46:26 -08:00
Melissa LeBlanc-Williams
4685648a81
Removed error only showing on debug
2019-02-15 08:46:43 -08:00
Melissa LeBlanc-Williams
3418eb034e
Line was too long
2019-02-14 20:00:00 -08:00
Melissa LeBlanc-Williams
edefde7d4f
Added parameters to docstrings
2019-02-14 19:56:19 -08:00
Melissa LeBlanc-Williams
e6810e5b86
Following ladyada's lead
2019-02-14 18:04:59 -08:00
Melissa LeBlanc-Williams
7ed715e435
Linting
2019-02-14 17:57:58 -08:00