Commit Graph

51 Commits

Author SHA1 Message Date
Phil Howard
6fc263c282 Fix setHostname API
Slightly modified version of the upstream fix to the set hostname API,
found here: f63b70aa3d

Sets the custom hostname in the system STA_START event, rather than directly. Falls back to "defaultHostname"

Allows a custom client-mode hostname to be set.

Co-authored-by: Riccardo Rizzo <r.rizzo@arduino.cc>
2021-06-02 18:14:18 +01:00
ZodiusInfuser
0c19f316c3 Merge branch 'master' into master 2021-03-27 12:45:39 +00:00
ZodiusInfuser
d0074840ab Added INPUT_PULLUP support and let analog write use full PWM range 2021-03-22 16:52:06 +00:00
ajs256
d2726992d8 Merge in commit 73375c3 from upstream
Replace `peek()` with `available()` during connection status check to avoid losing messages.

Closes adafruit#22.
2021-03-04 17:32:51 -08:00
Scott Shawcroft
3960966446 Add some newlines to improve debug output 2020-11-04 16:12:20 -08:00
anecdata
6bb17bb179 Add basic ADC calibration. 2019-10-17 00:12:35 -05:00
anecdata
b9c66fa1b1 Convert pin to ADC1 channel. 2019-10-14 00:32:48 -05:00
anecdata
5687201ec9 Add setAnalogRead type & command handler. Add core analogRead function. 2019-10-13 21:32:06 -05:00
brentru
d900dae127 private _handshake_timeout, set to reflect arduino-esp32 WiFiClientSecure by default 2019-10-08 16:41:11 -04:00
brentru
8be4f3dbed set the cert/key given a known socket within startClientTCP 2019-10-08 13:32:24 -04:00
brentru
33bfa15fc8 use key provided from code instead 2019-10-08 13:06:05 -04:00
brentru
3bd209446a add private key from WifiSSLClient into CommandHandler instead 2019-10-08 12:33:43 -04:00
brentru
cce35ecb74 set certificate within CommandHandler, setCertKey call for certificate 2019-10-08 12:18:14 -04:00
brentru
0d6137a8a9 drop char buffer sizes down to more realistic sizes 2019-10-08 11:23:54 -04:00
brentru
ac197818d3 set certificate sizes, works 2019-10-08 11:14:11 -04:00
brentru
54939b773e add extra prints, \n at tend of printfs 2019-10-07 17:00:28 -04:00
brentru
3be514d04d const char -> char 2019-10-07 16:54:59 -04:00
brentru
369381ecf0 making const chars globals, working connection to AWS IOT broker 2019-10-07 16:48:11 -04:00
brentru
40b46f1329 add printing for final deallocation() 2019-10-03 16:01:46 -04:00
brentru
c697543815 remove free() call, causes errors, remove Bluetooth in menuconfig 2019-10-03 14:51:08 -04:00
brentru
58bfe02bcb remove AWS_CERT_CRT, add check for heap into handler 2019-10-03 14:25:47 -04:00
brentru
eeb579fb9c add heap size check 2019-10-03 13:09:03 -04:00
brentru
fb9f9cc3bb reduced tls maximum message content length in menuconfig to 4KB 2019-10-03 13:07:14 -04:00
brentru
5c75800a83 print cert, return on error after free'ing 2019-10-03 12:49:20 -04:00
brentru
d2fa1ba9cc add MBEDTLS_SSL_ALLOC_FAILED error 2019-10-03 12:24:31 -04:00
brentru
ab949fe922 malloc and fail certificate 2019-10-03 12:13:43 -04:00
brentru
a7efa04365 start breaking out the handler 2019-10-02 17:40:41 -04:00
brentru
3b9427b282 create connect(host,port) function 2019-10-01 16:25:22 -04:00
brentru
ae8a059e89 add verification for cert, freeup heap 2019-10-01 16:10:48 -04:00
brentru
beb3a98b05 removed ssl/tls handshake, replaced with one which honors ssl handshake timeout 2019-10-01 15:59:13 -04:00
brentru
e2761767e7 add loading/ for client key and certificate 2019-10-01 15:05:05 -04:00
brentru
4b30ab4284 print return code and more verbose errors, move things around to correspond with their logical steps 2019-10-01 14:44:49 -04:00
brentru
0b558d2ea3 move pers to h, add return code int 2019-10-01 14:22:13 -04:00
brentru
d7fb4c556e entropy init. incl. device-specific identifiers instead of NULL 2019-10-01 14:14:58 -04:00
brentru
f3cbd721cb add a handshake timeout, stop() should free the new clientCr and clientKey 2019-10-01 13:56:47 -04:00
brentru
ffbca9c1e3 add setCertificate, setPrivateKey, mbed headers 2019-10-01 13:42:09 -04:00
ladyada
6179c0981d fix missing set hostname for TLS, update to latest IDF, add debug (can remove later) 2019-02-16 22:54:41 -05:00
ladyada
9e76479a7e change pin to not conflict with boot, add some debugs 2019-02-10 14:32:56 -05:00
Martino Facchin
bd556e24e4 Merge pull request #3 from sandeepmistry/bluetooth
Add support for BLE HCI UART mode
2018-11-13 16:13:11 +01:00
Sandeep Mistry
bd477c1d6b Fix DNS servers not sticking when static IP address is used 2018-11-13 09:07:53 -05:00
Sandeep Mistry
25b73d5196 Erase NVS flash on init failure 2018-11-13 08:56:11 -05:00
Sandeep Mistry
d718b1f539 Enable HCI UART mode on boot if SS is LOW 2018-11-13 08:56:11 -05:00
Martino Facchin
a1fbf4b2ce Move certificates to separate, mmapped partition 2018-10-04 11:33:32 -04:00
Sandeep Mistry
a75b35c6f8 Fixes for static IP's in STA + AP modes, fail on bad AP params (#3) 2018-10-03 11:03:26 -04:00
Sandeep Mistry
6c116be242 Switch to all channel scan when connecting to AP in STA mode
Default was fast scan.
2018-10-01 16:20:19 -04:00
Sandeep Mistry
c53863c01b Update license and name 2018-07-11 10:22:11 -04:00
Sandeep Mistry
1694b92f2f Add vTaskDelay to end of WiFiSSLClient::stop() 2018-06-28 13:00:28 +02:00
Sandeep Mistry
1acd9258d7 change default STA hostname to "arduino-XXYY" 2018-06-28 13:00:07 +02:00
Sandeep Mistry
4e2b214daf Call esp_wifi_stop() before connecting to AP 2018-06-28 12:59:52 +02:00
Sandeep Mistry
7d1d9647ec Use event info when handling SYSTEM_EVENT_STA_GOT_IP 2018-06-28 12:59:17 +02:00