Commit graph

78 commits

Author SHA1 Message Date
Diego Elio Pettenò
dd7b4fffc4 Apply SPDX copyright and license headers in compliance with REUSE.
The REUSE specifications[1] are meant to make it explicit and easier to
apply code licensing information for a project. The provided lint tool
makes it easy to ensure all the content (code and not code) is tagged.

Important notes:

 * All the code (and documentation) that otherwise didn't have an explicit
   license headers have been tagged with ladyada's copyright as per the
   LICENSE file.
 * favicon.ico and CODE_OF_CONDUCT.md have been synced from the
   source-of-truth repositories.
 * All configuration files have been tagged with ladyada's copyright and
   Unlicense[2]. The current REUSE recommendation is to use CC0-1.0, but
   that has… side effects. There's some discussion in [3] about the
   recommendation for likely-uncopyrightable files (such as configuration
   files).

[1]: https://reuse.software/
[2]: https://unlicense.org/
[3]: https://github.com/fsfe/reuse-docs/issues/62
2020-05-30 10:36:49 +01:00
Harold De Armas
974820a293 Clarify log statemeny 2020-04-30 14:04:59 -07:00
Harold De Armas
2c0466f786 fix indentation for easier merge 2020-04-30 00:17:50 -07:00
Harold De Armas
82edb0ab39 pylint 2020-04-30 00:15:36 -07:00
Harold De Armas
aa96dd1448 pylint 2020-04-30 00:13:04 -07:00
Harold De Armas
f437871fa3 Formatting 2020-04-30 00:02:47 -07:00
Harold De Armas
138bccbe9e Add UDP support
Writing to UDP requires separate APIs to use to append data and finalize.

TCP sends and confirms per-write and finalize is a no-op.  UDP appends to a buffer and finalize sends all at once.

The simple socket_open method doesn't actually create a socket per https://github.com/arduino/nina-fw.

Since socket_connect is a convenience method anyway, and connect doesn't really make sense for UDP, add the start_server call for UDP to that method to have a socket to write as well as read on.

e.x. usage

esp.socket_connect(socket_num, dest, port, esp.UDP_MODE)
esp.socket_write(socket_num, buffer, esp.UDP_MODE)
avail = esp.socket_available(socket_num)
recv = esp.socket_read(socket_num, avail)
esp.socket_close(socket_num)
2020-04-29 23:54:40 -07:00
dherrada
d387561329 Ran black, updated to pylint 2.x 2020-03-16 15:56:34 -04:00
foamyguy
fbbe97788e
Merge pull request #66 from mytechnotalent/ESP32-MAC-order-library-fix
Fixed MAC reverse byte order issue within the ESP32SPI library as it …
2020-02-27 21:43:24 -06:00
Brent Rubell
c68c64264d
Merge pull request #80 from anecdata/Kraken_II
Expose NINA command handlers for Digital Read and Analog Read
2019-10-23 12:54:56 -04:00
anecdata
ecb6eaa4b0 Check for compatible fw version. 2019-10-17 11:29:19 -05:00
anecdata
a0a7c70d93 Error message more specific. 2019-10-17 11:09:05 -05:00
anecdata
bbf02122d7 Error message more specific. 2019-10-17 10:44:33 -05:00
anecdata
5d9161c897 Fix typo. 2019-10-17 01:27:19 -05:00
anecdata
0edbc97140 Trying to fix pylint error. 2019-10-17 01:23:27 -05:00
anecdata
876e77de9b Digital: return boolean instead of 0 or 1. Analog: scaled return from 12-bit to 0-65535. 2019-10-17 00:15:54 -05:00
brentru
2a234e780f fix version to auto 2019-10-15 11:42:36 -04:00
brentru
f272407563 check private key/cert starting text 2019-10-15 11:41:38 -04:00
anecdata
2eb122fc56 Add _SET_ANALOG_READ_CMD command handler type and set_analog_read command handler. 2019-10-13 21:33:09 -05:00
anecdata
f493d6615e Add _SET_DIGITAL_READ_CMD command handler type and set_digital_read command handler. 2019-10-13 14:13:18 -05:00
brentru
3ea8a73c18 add set_psk, set_crt for checking if user sets cert/key pair 2019-10-10 09:35:27 -04:00
brentru
e14f3ef0cc fix CRLF/LF 2019-10-08 17:08:40 -04:00
brentru
4060e441bc assert buffer lengths 2019-10-08 13:04:54 -04:00
brentru
c32ac22836 add memory addreses for client cert/pk methods 2019-09-30 15:00:33 -04:00
brentru
774710c18c added handlers to setup certificate and private key, need to add command address 2019-09-30 14:51:02 -04:00
anecdata
b6e574305c Expose handler for BSSID, and wi-fi scan handlers for BSSID & channel. 2019-09-20 21:25:19 -05:00
Jerry Needell
32f15cedf0 simplify get_time valid tst 2019-09-14 22:16:05 -04:00
Jerry Needell
446beca9ab raise error in get_time if zero returned 2019-09-13 22:18:49 -04:00
Matt Costi
02ded47818 raise AP specific error when trying to get_time while in AP mode 2019-08-24 10:34:32 -04:00
brentru
2e02cd8cf9 Expose WiFiNINA NTP Time 2019-08-22 15:48:22 -04:00
mytechnotalent
00b6b952d4 Updated comment for new function. 2019-08-22 04:56:09 -04:00
mytechnotalent
da9f67fef2 Fixed MAC reverse byte order by adding new function to the ESP32SPI library calling the actual MAC address and providing a usage of the function in the webserver code within WSGISERVER. This time with line breaks at end to not break Travis. 2019-08-22 04:49:36 -04:00
mytechnotalent
3fd6a12118 Fixed MAC reverse byte order by adding new function to the ESP32SPI library calling the actual MAC address and providing a usage of the function in the webserver code within WSGISERVER. 2019-08-22 04:46:51 -04:00
mytechnotalent
ec97d6b068 Fixedblank line issus at EOF so Travis can run. 2019-08-21 07:30:07 -04:00
mytechnotalent
87095f617e Fixed MAC reverse byte order issue within the ESP32SPI library as it was originally echoing the MAC address in reverse byte order. Added portable MAC function call within WSGISERVER.PY example to properly echo MAC address when running example. 2019-08-21 07:03:15 -04:00
Matt Costi
a349bac38c add protected and unprotected AP code snippets to wsgi server demo 2019-08-11 17:53:07 -04:00
Matt Costi
180ceaa5e0 fix valid SSID and passphrase requirements 2019-08-02 12:09:27 -04:00
Matt Costi
5a73905688 Merge branch 'master' of https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI into ap_mode 2019-07-26 19:38:41 -04:00
Matt Costi
917ef2dd5d Address PR comments 2019-07-21 17:18:18 -04:00
Matt Costi
c2b7cb065f Address PR comments for adafruit_esp32spi.py 2019-07-21 14:11:43 -04:00
Matt Costi
8c4035d80d py linting 2019-07-14 11:44:13 -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
Matt Costi
f67a2e4ef1 tabs -> spaces 2019-07-10 23:00:18 -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