Commit Graph

563 Commits

Author SHA1 Message Date
c63d746a06 Added SPI bus pins (#1454)
Added SPI bus pins and tested them as well
2018-06-18 18:26:22 +03:00
83810fa156 add support for TXT records in mDNS query responses (#1480)
* add methods for getting TXTs.

* add methods for getting TXTs.
2018-06-18 18:18:50 +03:00
8e4ebf49de Add "ODROID ESP32" boards support (#1506) 2018-06-18 18:16:11 +03:00
89859f7f4c Calculate an absolute path for a custom partitions table (#1452) 2018-05-31 19:19:10 +02:00
a7b627cd78 Update espota.exe 2018-05-31 15:36:09 +02:00
7b243adcfd [OTA] Add UserSelectable timeout for invitation to device + check for OK result in the last few messages (#1445) 2018-05-31 15:29:53 +02:00
03808e3b8b Remove xtensa headers and adjust includes 2018-05-31 15:13:16 +02:00
40d85ce582 Add submodule of Azure IoT library (#1448)
* Add submodule of Azure IoT library

* update the submodule of AzureIoT
2018-05-31 14:52:02 +02:00
900e0a0257 Update commented pins in SPI Multi example
Update commented pins so people do not get confused and try to use them
2018-05-28 13:44:49 +02:00
9570b77abd Custom Partition Tables for @PlatformIO (#1440) 2018-05-26 07:49:22 +02:00
e7338998d2 Selectable (from menu) partitions for MH ET LIVE boards (#1430)
* Additional partition scheme min_spiffs
with minimal SPIFFS partition size and OTA support for bigger apps

* Selectable (from menu) partitions for m5stack

addition for m5stack (as is prepared for lolin32 board: https://github.com/espressif/arduino-esp32/pull/1379)

discourse here: https://github.com/espressif/arduino-esp32/issues/1378

* Selectable (from menu) partitions for MH ET LIVE boards
in reference to other boards (m5stack, lolin32)
this PR adds partition scheme selection for MH ET LIVE boards
also adds Core Debug Level selection for above boards
2018-05-25 16:29:56 +02:00
7aa8fc4b26 Added IIC pins (#1436)
Added IIC pins. I can confirm that this is working!
2018-05-25 16:28:26 +02:00
4ad27b4adc Added link to compilation issues for arduino as esp-idf component (#1435) 2018-05-25 16:27:50 +02:00
c24a3404c6 Add SYSTEM_EVENT_WIFI_READY call back + WiFiMode fixes (#1322)
* Add `SYSTEM_EVENT_WIFI_READY` call back once wifi service is init.  allows you to hook in, as the sdk does not generate this event for you.
As it stands the SDK does not appear to set `WIFI_MODE_NULL` correctly.  if the wifi is initialised and set to `WIFI_MODE_NULL` it actually defaults to AP mode.  This fix keeps `WIFI_MODE_NULL` within the ESP class if the wifi has not been init yet, and works in my testing.  albeit a one sided conversation.
https://github.com/espressif/arduino-esp32/issues/1306

* make changes compatible with new _persistent behaviour.
2018-05-23 10:53:01 +02:00
93c45af256 Use esp_timer_get_time as time source for micros and mills (#1424)
esp_timer_get_time returns monotonic time in microseconds, as a 64-bit
number. It can be called from tasks and interrupts, does not use any
critical sections/mutexes, and is thread safe.
2018-05-22 16:12:30 +02:00
dd639c4a02 Fix wrong range of duty cycle (#1353)
The esp-idf expects duty values for the the sigma delta modulator in the range of -128 to 127
The arduino framework is supposed to use the range 0-255 thus the offset caclulation was wrong.
2018-05-14 13:18:03 +02:00
f14de5cf14 WiFi disconnect reason message updated (#1323)
wifi_err_reason_t doesn't have reason code 12. After reason code 11, we are getting wrong wifi disconnected reason message. Added "UNSPECIFIED"  in place of reason code 12.
And above 201 reason code, it should be r-176 instead of r-177. Because messages are started from zeroth offset.
2018-05-14 13:12:04 +02:00
848cf98ba9 Update ExternalWakeUp.ino (#1332) 2018-05-14 13:09:51 +02:00
25678f47aa Convert - to _ in build.board names (#1341)
build.board is used to define a macro but - is not a permitted character in macro names. This causes the macro name to actually be only everything up to the first - and also many warnings when compiling for one of these boards:

<command-line>:0:14: warning: ISO C++11 requires whitespace after the macro name

<command-line>:0:14: warning: ISO C99 requires whitespace after the macro name

I have followed the convention of the other build.board names by replacing - with _.
2018-05-14 13:09:25 +02:00
f5246cf4c1 Adding a getClockDivider function (#1355)
* Adding getClockDivider function

* indentation correction
2018-05-14 13:08:27 +02:00
6bf7619ccc std::functioanl for WFIF event + Minor fix (#1366)
* add missing bits from esp8266 to help porting other libs

* Clean Up of Wifi event

* Exampl of Wifi Events
2018-05-14 13:05:49 +02:00
7bf1f47c97 Add note about sketch book location (#1374) 2018-05-14 13:04:44 +02:00
f8a3c61981 Add upload.maximum_size directives to boards.txt. Add partitions to LOLIN32 (#1379) 2018-05-14 13:03:46 +02:00
6f12b691cf Selectable (from menu) partitions for m5stack (#1382)
* Additional partition scheme min_spiffs
with minimal SPIFFS partition size and OTA support for bigger apps

* Selectable (from menu) partitions for m5stack

addition for m5stack (as is prepared for lolin32 board: https://github.com/espressif/arduino-esp32/pull/1379)

discourse here: https://github.com/espressif/arduino-esp32/issues/1378
2018-05-14 13:03:21 +02:00
611db61d84 Fix WiFiClient error handling (#1388) 2018-05-14 13:01:22 +02:00
00f962439a Port SSL fingerprint checking from ESP8266 WiFiClientSecure to ESP32 (#1397) 2018-05-14 13:00:40 +02:00
0ea9ea4447 Fix WiFi.persistent(false); having no effect. (#1406)
This PR calls `esp_wifi_set_storage(WIFI_STORAGE_RAM);` when
  persistent WiFi configuration is not desired.
2018-05-14 12:59:59 +02:00
cef5433c8b Make extra images independent from a prog tool 2018-05-11 02:30:00 +03:00
b9ca922379 Initial support for external JTAG programmers 2018-05-11 01:51:36 +03:00
bfed6eb072 Allow to pass a custom partition table 2018-05-07 23:47:22 +03:00
68265084b1 Created example program showing usage of both VSPI/HSPI within arduino API (#1368) 2018-05-02 15:22:56 +02:00
1424b6d1a4 Add guard to handle to check for _initialized (#1321)
The wifi stack initialisation must be complete before calling  `_udp_ota.parsePacket()` otherwise you just get a screen filled with 
```
```
and due to the more async methods in ESP32 `handle()` may be called before this can occur.
2018-04-16 18:56:58 +02:00
c92b617397 Convert the few remaining cr/lf files to use lf for eol. (#1316)
If you develop on windows and need cr/lf files, see this:

    https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_formatting_and_whitespace

    Git can handle this by auto-converting CRLF line endings into LF
    when you add a file to the index, and vice versa when it checks out
    code onto your filesystem. You can turn on this functionality with
    the core.autocrlf setting. If you're on a Windows machine, set it
    to true - this converts LF endings into CRLF when you check out code:

    $ git config --global core.autocrlf true
2018-04-16 16:34:39 +02:00
1da3138ed6 Corrected Flash Mode (#1205)
Changed Flashmode to DIO due board only supports DIO
2018-04-14 09:48:10 +02:00
4da5d46ecd Additional partition scheme min_spiffs (#1302)
with minimal SPIFFS partition size and OTA support for bigger apps
2018-04-14 09:45:08 +02:00
febcda0095 add WiFiClientSecure::peek(); (#1310) 2018-04-14 09:44:21 +02:00
69f72eca84 Update IDF to f586f5e (#1296)
* Update BLE lib

* Update IDF to f586f5e

* Restructure Bluetooth Serial includes

* Update esptool and gen_esp32part

* Add partition scheme selection for menuconfig

* Add partition scheme selection for Arduino IDE

* Fix BLE example

* Second attempt BLE fix

* Add exceptions to PIO
2018-04-07 09:45:18 +03:00
1cf42702dd Add Hardware Reset when Initing I2C peripheral (#1201)
This change uses the `_RST` bit of the i2c peripheral to force the hardware into power on reset state.  The prior code assumed the peripheral was already in a reset, it just cleared the reset bit.  

Chuck.
2018-04-06 19:13:59 +03:00
14ed6c4c25 Corrected Instructions for Windows typo error (#1210) 2018-04-06 19:12:17 +03:00
2ded419486 Update WiFiMulti.cpp (#1220)
* Update WiFiMulti.cpp

added 5 sec timeout from ESP8266

* Update WiFiMulti.cpp

* Update WiFiMulti.h
2018-04-06 19:10:06 +03:00
7eb6fc5286 Add Core Debug Level for WeMosBat (#1222)
Should we add this declaration option for all boards?
2018-04-06 19:09:19 +03:00
aa1288aa6e HardwareSerial - availableForWrite() support (#1226)
* HardwareSerial - availableForWrite() support

* fix indentation errors (tab vs space)
2018-04-06 19:07:46 +03:00
149190fe11 fix Arduino component build when CONFIG_ARDUHAL_ESP_LOG is turned off (#1228) 2018-04-06 19:06:53 +03:00
7998e2321d Preserver custom pin assigments (#1239)
This code allows Wire.begin() to assign the default values of SDA, and SCL only if they have not been previously configured.  Arduino libraries that use Wire() usually re-init the I2C interface in their initialization code with a call to Wire.begin().  If a user app sets custom pins assignment in setup(); These assignments will be overwritten with the default values  whenever Wire.begin() is called.
2018-04-06 19:05:48 +03:00
5abe49e8eb currently, when M5Stack board is selected (#1242)
M5Stack variant (pins_arduino.h) file is not automatically included,
because boards.txt m5stack-core-esp32.build.variant=esp32
This commit changes m5stack-core-esp32.build.variant from esp32 to m5stack_core_esp32
also rename M5Stack variant directory from m5stack-core-esp32 to m5stack_core_esp32
2018-04-06 19:04:12 +03:00
c01e5563c8 serial global instance fix (#1243) 2018-04-06 19:02:59 +03:00
f6a4b024c7 fixes #1249 (#1269) 2018-04-06 19:02:21 +03:00
25dff4f044 Fix Bluetooth Serial 2018-04-03 11:09:29 +03:00
3a4ec66d41 Add hasClient for BluetoothSerial (#1183)
* Add hasClient for BluetoothSerial

* Add SPP_TAG
2018-03-09 11:16:18 +01:00
e9ee0ab7df Fixed M5Stack build.board name (#1187) 2018-03-09 11:15:44 +01:00