1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

2289 Commits

Author SHA1 Message Date
Ivan Grokhotkov
f4c391032a const-correctness IPAddress::toString() (#2507)
it doesn't modify any member variables, should be safe to be const.
2016-11-14 10:43:40 -06:00
Victor Tseng
5666ec2ec1 const-correctness IPAddress::toString()
it doesn't modify any member variables, should be safe to be const.
2016-09-13 00:32:29 +08:00
Me No Dev
4897e0006b match headers using equalsIgnoreCase (#2474)
Should fix: https://github.com/esp8266/Arduino/issues/2131
2016-09-02 11:49:14 +03:00
Ivan Grokhotkov
c2414a2252 Update axTLS to 144994c
https://github.com/igrr/axtls-8266/pull/23
2016-08-29 13:48:54 +08:00
Me No Dev
889775c6fe ArduinoOTA optimizations (#2445)
- Added option to control if the ESP should be rebooted on success
- Added delay before ESP.restart() is called
- Added some comments to the header
2016-08-27 18:32:26 +03:00
Ivan Grokhotkov
b41266097f WiFiClientSecure: certificate loading refactoring, support for CA root cert verification 2016-08-25 13:01:10 +08:00
Ivan Grokhotkov
7f6e0c98f6 core: fix bug in gettimeofday
gettimeofday used to return timestamps which had tv_sec 1000 times smaller than the correct value.
s_bootTime is in seconds, so no need to divide it by 1000.
2016-08-25 12:51:57 +08:00
Ivan Grokhotkov
35ee060c09 axTLS: update to d26f23a (2.0.0+) 2016-08-25 12:49:32 +08:00
Krzysztof
d6e38f0abd ESP8266WiFi library documentation (#2388)
* New section with ESP8266WiFi library documentation

* ESP8266WiFi library documentation

1. Introduction - example, diagnostic, doxygen
2. Station - examples, new doc
3. Soft Access Point - examples, new doc
4. Scan - examples, new doc
5. Client - examples, ref. Arduino, setNoDelay, list of functions
6. Client Secure - examples, loadCertificate, setCertificate, list of
functions
7. Server- examples, ref. Arduino, setNoDelay, list of functions
8. UDP - examples, ref. Arduino, Multicast UDP
9. Generic - examples, onEvent, WiFiEventHandler, persistent, mode, list
of functions

* Fixed numbered list
2016-08-25 11:01:05 +08:00
Me No Dev
45f177f985 weaken axTLS methods so they can be overwritten by the async library (#2423) 2016-08-23 01:11:06 +03:00
martinayotte
4754f4317c SD: change 'char *' parameters to 'const char *' to fix bad recursion (#2398) 2016-08-22 21:11:34 +08:00
Me No Dev
497d19d039 out_min should not be in divisor (#2408)
fixes fb00e64a6f error
2016-08-18 12:38:01 +03:00
Me No Dev
fb00e64a6f detect division by zero in map() to prevent exceptions (#2397)
Will return -1 like AVR would
2016-08-18 10:50:59 +03:00
Me No Dev
7746288b41 fix mdns.h guard defines (#2396) 2016-08-18 10:19:56 +03:00
Me No Dev
b250381d80 make updater fail if there is not enough space to fit the new firmware (#2405) 2016-08-18 09:59:35 +03:00
Clemens Kirchgatterer
4ececda82b fixed crash in mDNS destructor (#2389) 2016-08-12 21:51:11 +03:00
Me No Dev
8cd331a8ba optimize uart rx isr and lower fifo full treshold (#2355) 2016-08-01 12:34:32 +03:00
Me No Dev
0718188264 fix NetBIOS example file name (#2354) 2016-08-01 11:52:44 +03:00
Radu Pascal
b682d597c5 ESP8266mDNS using the provided IP in the begin method (#2349)
this fix forces the mDNS to use the provided IP in the begin method
instead of the auto detected IP. this is required if the ESP8266 starts
in the AP_STA mode and activates only the AP initially.
2016-08-01 11:49:47 +08:00
Me No Dev
c4c207a85e Optimize MDNS to prevent overflow and endless loop (#2333)
* Optimize MDNS to prevent overflow and endless loop

* Handle better non-esp services

* leave debug off

* better name resolution for external devices

* strip name length (did not show in IDE)
2016-08-01 11:48:23 +08:00
Jean-Baptiste
db5e20f237 proposal for issue #1845 wifi_wps_status_cb get an undefined status 4 and missed wifi_wps_disable (#2312) 2016-08-01 11:46:29 +08:00
Stefano-Orsolini
c52088c774 set max_connection from code (when less than 4 is needed) (#2326)
* Update ESP8266WiFiAP.cpp

It is not very common but some might require to set the maximum number of clients, from code, to smaller than 4.
in my case i must allow only one client at a time (TESTED WORKING)

* Update ESP8266WiFiAP.h

as discussed in the .cpp (set max connections)

* Update ESP8266WiFiAP.cpp

corrected indentation @70 
add param comment @86

* Update ESP8266WiFiAP.cpp
2016-08-01 11:45:34 +08:00
Ivan Kravets
be3727c71f Use stable documentation of PlatformIO (#2337) 2016-08-01 11:45:05 +08:00
Clemens Kirchgatterer
18297458be allows global object instances be switch off with defines (#2344) 2016-08-01 11:21:50 +08:00
martinayotte
bd01e44c76 fix link list bug in ESP8266mDNS (#2347) 2016-08-01 11:21:21 +08:00
Me No Dev
f50a6c0a8a Add support for 8 and 16 MB Flash (#2351)
Add to core dev config initially
2016-08-01 11:20:53 +08:00
Me No Dev
b7c7bc038d digitalWrite and digitalRead cancel analogWrite enabled on a pin (#2328)
related to https://github.com/esp8266/Arduino/issues/2175
2016-07-26 14:16:02 +03:00
Fabian Desoye
3fc3e9a99d Added PUT Request to HTTP Client (#2310)
* Added PUT Request to HTTP Client

* Replaced Tabstops with spaces
2016-07-26 18:23:38 +08:00
Clemens Kirchgatterer
4dc4e75216 allow F() to be used for uri parameter (#2319) 2016-07-26 18:23:14 +08:00
Me No Dev
7900132225 fix uart triggering wdt on recalling begin (#2307) 2016-07-21 00:20:58 +03:00
Me No Dev
6feecc5122 Fix analogWrite (#2299)
* Fix analogWrite

Move to NMI interrupt
Rework the whole ISR to take less and more constant cycles
Current defaults run 10bits/1KHz@160MHz and 9bit/1KHz@80MHz (soft
mapped)

* astyle and remove STORE_ATTR
2016-07-19 19:34:11 +08:00
sk1tt1sh
9c36ff9932 Fix example for ESP8266httpUpdate (#2251)
* Fix minor typo in spelling of failed. Removed s from http paths.

* add check if we are just updating spiffs to not reboot. example now works with this change.
2016-07-18 19:33:34 +08:00
Pauline Middelink
3f1ab1fd81 Updated String library to use C++11 iterators. (#2267)
This will allow using the String library in a ranged for loop:

```C++
String s("Hi, this is a test");

for (const char& ch : s) {
  Serial.print(ch);
}
```

and even modify

```C++
String s("Hi, this is another test");

for (char& ch : s) {
  ch++;
}
Serial.println(s);
```
2016-07-18 19:31:34 +08:00
Sergey Anisimov
98fe5617eb Adding onComplete event handler support for the asynchronous network scanning. (#2287) 2016-07-18 19:30:41 +08:00
Helio
f0e2c9f28b Fix typo (#2291)
Great *Arudino* boards!
Maybe is a Chinese rebrand. Like the Casdo calculators
😄
2016-07-18 19:29:25 +08:00
Me No Dev
e83f30a78d Ota hashed password (#2292)
* Add option to give ArduinoOTA a hashed value of the password

hashed password can be safely stored on flash

* Switch to separate method to accept the hash

* Calculate the hash of plain passwords at setup

* missed line

* Remove underscores from local variable
2016-07-18 19:28:56 +08:00
andig
c4f9f102ce Add getCommand() api for OTA update type (#2259) 2016-07-15 11:03:34 +03:00
Me No Dev
1f7989b31d Implement Async NBNS (NetBIOS) name resolution for Windows (#2275)
* Implement Async NBNS (NetBIOS) Name resolution for windows

Source: http://www.xpablo.cz/?p=751#more-751
2016-07-15 10:40:31 +03:00
Me No Dev
e35ebf137d Add support to Print::printf for printing from flash (#2266)
* Add support to Print::printf for printing from flash
2016-07-15 10:15:44 +03:00
Me No Dev
217ba9e072 fix typo in hspi_slave.c (#2276)
Current C++ implementation has this field hardcoded, so this case was
never hit
2016-07-15 09:53:20 +03:00
Me No Dev
07f4d4c241 Lwip addons (#2260)
* Add multicast TTL to UDP and rework UdpContext

* Add limit for TCP TIME_WAIT pcbs

* Add liblwip_gcc.a

* Make the changes be backward compatible with the current xcc version
2016-07-11 21:07:45 +08:00
SteveToulouse
86067333f5 Fix2115 (#2244)
* Update ESP8266WiFiMulti.cpp

Fix #2115

* Update ESP8266WiFiMulti.cpp

Fix #2115. Cleaner version (catch strdup("") fail).
2016-07-08 10:12:22 +08:00
Me No Dev
f8a8a2a359 Implement Serial RX Buffer (#2239)
In connection with:
https://github.com/esp8266/Arduino/issues/2237
https://github.com/esp8266/Arduino/issues/2037
https://github.com/esp8266/Arduino/issues/1683
2016-07-08 10:11:14 +08:00
Jeroen Vogelpoel
edba2d2829 Exposed sketch MD5 through HTTP headers (#2236)
* Exposed sketch MD5 through HTTP headers

* Updated spacing, docs, example
2016-07-08 10:07:21 +08:00
Me No Dev
0d996ab75e fix plain post content containing special chars being parsed as arguments (#2241)
this solution actually keeps the content as is, as long as it's text
(does not contain zeroes)
2016-07-07 00:59:26 +03:00
mmarchese1
24f84664e7 fixed argument passing (#2209)
Using espota.py as a module by calling espota.main(args) was not working because the args given to main were not being passed into parser.parse_args().  I fixed this by having main pass args to the parser function, which in turn passes them to the parser object's parse_args() function.
2016-07-06 10:59:23 +08:00
Me No Dev
4217e49b54 Initial SPI Slave implementation and examples (#2234)
* Initial SPI Slave implementation and examples

* Update style and info
2016-07-06 10:58:45 +08:00
Me No Dev
2364ad4dd0 Web Server Test (#1) (#2231)
* Initial WebServer Test

* ignore .pyc files

* add poster as requirement to virtualenv
2016-07-05 16:18:53 +08:00
Me No Dev
79ce12247e add option to define hardware folder as parameter (#2230)
current hardware folder used for the core is wrong, but I have not come
up with a way to properly configure it
2016-07-05 14:22:54 +08:00
Ivan Grokhotkov
7a2d2460f3 Add sample test for WiFiServer
Mostly an example of writing tests for servers
2016-07-04 18:22:27 +08:00