Commit graph

178 commits

Author SHA1 Message Date
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
Melissa LeBlanc-Williams
bdb6433497 WiFi manager done and examples updated 2019-02-14 17:48:40 -08:00
Melissa LeBlanc-Williams
520272ceed Fixed a bunch of easy lint messages 2019-02-13 22:46:12 -08:00
Melissa LeBlanc-Williams
5ea3a4014a Initial WiFi Manager build 2019-02-13 22:28:35 -08:00
ladyada
9aa865ab28 pylinted 2019-02-10 21:27:01 -05:00
ladyada
0f016f952b fix ping, prettier example 2019-02-10 21:11:33 -05:00
ladyada
a86c896a5c less debugs - try back to MTU 4000 2019-02-09 21:24:21 -05:00
ladyada
7b7fbe4d00 try to minimize allocations 2019-02-09 21:18:05 -05:00
ladyada
7f9e3e319e Merge branch 'master' of github.com:ladyada/Adafruit_CircuitPython_ESP32SPI 2019-02-09 17:56:14 -05:00
ladyada
6fe5722bd2 remove debug print, set MTU to 1500 2019-02-09 17:55:54 -05:00
ladyada
4c41d038e6 linted 2019-02-09 14:29:03 -05:00
ladyada
97a59c1653 fix tcp bulk transfer bug, socket timeout setter, streaming data from socket, and a max transfer size 2019-02-09 14:04:06 -05:00
ladyada
b0f84901fa Merge branch 'master' of github.com:ladyada/Adafruit_CircuitPython_ESP32SPI 2019-02-09 00:40:02 -05:00
ladyada
f2a6c25979 docstring complaint fix? 2019-02-09 00:17:22 -05:00
ladyada
e2699fc936 Merge branch 'master' of github.com:ladyada/Adafruit_CircuitPython_ESP32SPI 2019-02-09 00:12:18 -05:00
ladyada
f3c69d4484 less quotey 2019-02-09 00:12:02 -05:00
ladyada
06140ad027 Merge branch 'master' of github.com:ladyada/Adafruit_CircuitPython_ESP32SPI 2019-02-09 00:11:14 -05:00
ladyada
1af666b947 replace spaces in url 2019-02-09 00:11:03 -05:00
ladyada
c05ca26f55 pylint buggy 2019-02-09 00:02:45 -05:00
ladyada
1683b26822 linted 2019-02-08 23:59:03 -05:00
ladyada
c2be8aa174 linted requests 2019-02-08 23:19:19 -05:00
ladyada
9e2b1aab45 new cookie 2019-02-07 12:47:38 -05:00
ladyada
2e131b6687 tear out manual SPI and replace with busdevice 2019-01-27 22:40:25 -05:00
ladyada
f89ce7aad7 reset if is_connected() fails 2019-01-27 22:19:32 -05:00
ladyada
ec7ef7196c add timeout to SPI readywait 2019-01-27 20:09:32 -05:00
ladyada
828db15268 simplify 2019-01-27 20:06:36 -05:00
ladyada
f6f741c111 easier retries 2019-01-27 17:16:09 -05:00
ladyada
e0210144c2 make work with original demos 2019-01-27 15:37:31 -05:00
ladyada
fa1ec91f9d move into a subfolder, working ssl 2019-01-27 14:15:31 -05:00