Commit Graph

1094 Commits

Author SHA1 Message Date
copercini
8ab3231e31 Add WiFiClient secure lib (#184)
* Provide SSL/TLS functions to ESP32 with Arduino IDE

* Generate a new random number in case of reconnection
2017-02-11 00:20:24 +02:00
Martin Sloup
0fb5e5ca11 Improves in ESP32NVS library (#196)
* Improved ESP32NVS default value support for read* functions

Fixed uninitialized NVS flash storage. Added example code.

* Add methods for String and remove unnecessary nvs_flash_init() in ESP32NVS class

+ other minor declaration fixes

* ESP32NVS function name renaming

* read* -> get*
* write* -> set*
* erase -> clear / remove
2017-02-11 00:18:57 +02:00
Ivan Kravets
5de2429bf8 Wrap "gen_esp32part" command with verbose action and own label (#198) 2017-02-11 00:14:09 +02:00
Ivan Kravets
d92c7686b0 Add support for custom partition table; use built-in esptool.py (#195) 2017-02-10 19:33:55 +02:00
Me No Dev
fb8fe671d6 New partitions (#192)
* Add new partition scheme

* Init NVS early, so it can be used without BT or WiFi
2017-02-10 14:11:24 +02:00
me-no-dev
1f0df1ef97 Fix wrong return values for WiFi::softAPConfig
fixes: https://github.com/espressif/arduino-esp32/issues/191
2017-02-10 13:49:43 +02:00
me-no-dev
0101564219 fix compilation error if debug level is above debug and less or equal to warn 2017-02-10 04:27:48 +02:00
me-no-dev
8df22cac80 Store WiFi settings in flash
Fixes: https://github.com/espressif/arduino-esp32/issues/173
2017-02-10 02:01:16 +02:00
me-no-dev
6a058275e7 Remove unimplemented methods from SPI 2017-02-09 20:40:56 +02:00
Martin Sloup
3e87dcf748 beginPacket can be used without listening on socket (#185)
Currently there is bug in WiFiUDP library when you want to use beginPacket(...) without listening on socket (without calling begin(...) first). You can't send any data because socket is not open and also tx_buffer is not allocated which cause crash while writing data to tx_buffer.
2017-02-08 23:10:16 +02:00
me-no-dev
bfa979a900 Add initial NVS Arduino implementation 2017-02-08 23:09:42 +02:00
me-no-dev
7a7b697ff9 Add ESP::deepSleep(us)
fixes: https://github.com/espressif/arduino-esp32/issues/51
2017-02-08 20:32:49 +02:00
me-no-dev
fdc4f53eb6 fix WiFi disconnect reason index 2017-02-08 20:20:00 +02:00
Martin Sloup
67128fcb2c Fixes implementation of __FlashStringHelper (#183)
Previous __FlashStringHelper implementation was defines as a char which brought problem in case the method with char* parameter used overloading with __FlashStringHelper* parameter (they was identical). Now __FlashStringHelper is defined as a class and all casts between char* and __FlashStringHelper* are made with reinterpret_cast sugar.
2017-02-08 19:57:26 +02:00
Ion
cea41d965a Add Touchread example (#175)
* Add Touchread example

* Rename libraries/ESP32/examples/Touch/TouchRead.ino to libraries/ESP32/examples/Touch/TouchRead/TouchRead.ino

* Update TouchRead.ino
2017-02-07 03:42:43 +02:00
Martin Sloup
e62ecb3ef4 Added boards constants for LED_BUILTIN and KEY_BUILTIN (#177)
* Added boards constants for LED_BUILTIN and KEY_BUILTIN

Sources:
* esp320: http://wiki.sweetpeas.se/index.php?title=ESP320#Developing_using_the_Arduino_IDE
* esp32thing: https://cdn.sparkfun.com/assets/learn_tutorials/5/0/7/esp32-thing-schematic.pdf
* espea32: https://github.com/AprilBrother/ESPea32/blob/master/hardware/ESPea32-schematic.pdf
* hornbill32dev: https://github.com/ExploreEmbedded/Hornbill-ESP32-DEV/blob/master/Design%20Files/Schematic/Hornbill%20Devboard.pdf
* lolin32: values from existing header
* nano32: http://iot-bits.com/closer-look-esp32-nano32/
* node32s: https://github.com/lamloei/node32s-book/blob/master/ch01/node32s-schematic.pdf

* Replace BUILTIN_LED constant with #define
2017-02-07 03:39:08 +02:00
Me No Dev
d02c1c786e Update IDF, fix SS definition, add custom partitions and debug level selection (#174)
* Add build time partitions compilation

* Fix wrong definition of SS pin

* Add support for core debug level selection

* update idf libs
2017-02-06 15:17:11 +02:00
me-no-dev
ee8149e207 add better debug messages for WiFi status 2017-02-05 23:59:44 +02:00
me-no-dev
f4ad2624c9 update travis and build script to not fail 2017-02-05 19:58:27 +02:00
Ion
c66b54a9eb Add touch example 2017-02-05 18:03:04 +02:00
Jan Hendrik Berlin
bbf48a5d54 Add (ported) SimpleWiFiServer (#158) 2017-02-05 17:21:51 +02:00
Ivan Kravets
9101e1366e Test nested examples with @PlatformIO (#172) 2017-02-05 16:59:10 +02:00
me-no-dev
a80b2b24a4 Add ESP32 examples folder and sigma-delta example 2017-02-05 16:14:43 +02:00
Ion
150d2cec69 Add hint (#170)
* Add hint

* Update README.md

* Update README.md

* Update README.md
2017-02-05 14:48:13 +02:00
Joren Six
97e9a120bd Added a basic WiFi UDP client example (#114)
* Added a basic WiFi UDP client example: a sketch that sends random bytes over udp.

* Updated udp example and included Python and Ruby UDP servers.
2017-02-03 16:31:41 +02:00
me-no-dev
de017a8a1b Optimize SPI transfers to take one lock and do not return until completed 2017-02-01 02:14:36 +02:00
Ivan Kravets
672631ddf0 Use CI cloned version instead of master for @PlatformIO (#157) 2017-01-31 02:53:32 +02:00
Ivan Kravets
6bec26cfbf Add @PlatformIO to Travis.CI (#154)
* Initial version of build script for @PlatformIO; CI integration for Linux, macOS and Windows

* Remove CI badges

* Add @PlatformIO to Travis.CI
2017-01-28 18:15:46 +02:00
Peter Lerup
4bae4e060b Added reference to makeEspArduino (#155) 2017-01-28 18:11:17 +02:00
Ivan Kravets
e5f6c2effa Initial version of build script for @PlatformIO; CI integration for Linux, macOS and Windows (#153)
* Initial version of build script for @PlatformIO; CI integration for Linux, macOS and Windows

* Remove CI badges
2017-01-28 14:19:56 +02:00
Me No Dev
73161688df Update README.md
Add Travis build badge
2017-01-28 14:15:42 +02:00
me-no-dev
e8e8efdb66 finalize formatting of reported sketch size 2017-01-28 14:09:00 +02:00
me-no-dev
ca35560413 add proper size formatting to travis reports 2017-01-28 14:00:19 +02:00
me-no-dev
7a68cefaa0 lines forgotten to be commented 2017-01-28 13:47:12 +02:00
me-no-dev
fe12ebd3fd dump size and partitions to prep size format for travis 2017-01-28 13:44:31 +02:00
me-no-dev
3a61fc245e create default libraries folder, though not yet used 2017-01-28 13:36:13 +02:00
me-no-dev
25f7993f51 fix missing arguments for build.py 2017-01-28 13:33:41 +02:00
me-no-dev
46a7500a26 travis should install hardware in the home folder 2017-01-28 13:28:03 +02:00
me-no-dev
19261c0aef fix build board for travis 2017-01-28 13:19:30 +02:00
me-no-dev
b0b21f7335 remove unnecessary build steps from travis 2017-01-28 13:14:59 +02:00
me-no-dev
77a04a01a3 Initial travis pull from esp8266 2017-01-28 13:09:20 +02:00
me-no-dev
6a1e7c1e99 Fix cbuf not being able to hold the full length
fixes: https://github.com/espressif/arduino-esp32/issues/145
2017-01-24 17:57:44 +02:00
me-no-dev
5f203e1a98 Add ESP::getSdkVersion
fixes: https://github.com/espressif/arduino-esp32/issues/146
2017-01-24 11:44:26 +02:00
me-no-dev
c8140f8288 add configTime, getLocalTime and support for time in Print
example:
```cpp
//done once on WiFi init
configTime(-7200, 3600, "pool.ntp.org");
//get local time
struct tm timeinfo;
if(!getLocalTime(&timeinfo)){
    Serial.println("Failed to obtain time");
    return;
}
//print time
Serial.println(&timeinfo);
//print time with different format
Serial.println(&timeinfo, "%A, %B %d %Y %H:%M:%S");
```
fixes: https://github.com/espressif/arduino-esp32/issues/29
2017-01-24 04:07:27 +02:00
me-no-dev
6dfbdbca29 fix WiFi.config not being applied
fixes: https://github.com/espressif/arduino-esp32/issues/143
2017-01-24 01:08:48 +02:00
me-no-dev
3c7d0e9905 add RSSI return and fix SSID and BSSID methods
fixes: https://github.com/espressif/arduino-esp32/issues/144
2017-01-24 00:56:12 +02:00
sorscode
13f3ac569b Enable pulseIn() (#140)
* Add files via upload

enable pulseIn()

* Remove optimistic_yield
2017-01-20 21:49:17 +02:00
Seop Yoon
57dbc9ab77 Add smartConfig support (#136)
* smartConfig support

* fixed bug, added example

* added _smartConfigDone = ture

* changed example name, added explanation
2017-01-20 12:39:51 +02:00
me-no-dev
78f2c6f31e update IDF libs 2017-01-19 16:25:27 +02:00
Me No Dev
ada57f36fb Update windows.md 2017-01-19 16:03:37 +02:00