1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

303 Commits

Author SHA1 Message Date
Ivan Grokhotkov
93413efcf4 Remove queue.h contents originating from BSD (#2982)
fixes #2981
2017-02-19 05:36:30 +03:00
Frank Sautter
af58a74cc0 Allow usage of byte arrays to set RootCAs (#2968) 2017-02-15 14:22:23 +03:00
wosk
e9dea9af99 Update keywords.txt for coloring syntax (#2892)
Add ESP keywords and update ESP8266Wifi library
2017-02-06 13:25:27 +03:00
Ivan Grokhotkov
808bf50ff2 wifi: add SoftAPModeProbeRequestReceived event handler (#2917)
- add probe request event handler (#2910)
- update WiFi events handling example to use new handler

Pro tip: replace blinking LED with ‘analogWrite’ and connect the pin to
a loudspeaker (or use a servo to hit a bell). Get notified when someone
with a smartphone wanders around your country house.
2017-02-06 13:24:34 +03:00
joelucid
61787b23af ClientConnection uses too much heap when streaming files #2871 (#2874)
* ClientConnection uses too much heap when streaming files #2871

* make write_chunk_size a member variable

* untabify
2017-01-31 11:04:45 +03:00
Rodion Kvashnin
2126146e20 Fix warnings (#2881)
* Suppressed -Wunused-parameter and -Wunused-function by casting to void unused identifiers.

* Explicit initialization of all fields to suppress -Wmissing-field-initializers.

* Fixed signed/unsigned integer comparison.

* memset initialization of structs.

* More -Wunused-parameter fixes.
2017-01-31 10:07:59 +03:00
WereCatf
d46d742db1 Use WIFI_STA in WiFiClient-examples
Many people have problems with using ESP8266 as WiFi-client due to
none of the examples mentioning that you should use WIFI_STA if you
only want the ESP8266 to act as a WiFi-client. Many WiFi-devices
will randomly try to connect to the ESP8266 if used as STA+AP and
complain about not being able to access the Internet or other devices
on the network.
2016-10-29 12:40:06 +03:00
Ivan Grokhotkov
b41266097f WiFiClientSecure: certificate loading refactoring, support for CA root cert verification 2016-08-25 13:01:10 +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
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
Sergey Anisimov
98fe5617eb Adding onComplete event handler support for the asynchronous network scanning. (#2287) 2016-07-18 19:30:41 +08: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
Ivan Grokhotkov
39212baeb0 Fix WiFi.onStationModeDHCPTimeout (#2195) 2016-07-04 15:47:55 +08:00
Ivan Grokhotkov
8db4dcea42 WifiClient::write refactoring (second attempt) (#2177)
* WiFiClient: use DataSource for writes

* ESP8266WebServer: delegate writing to WiFiClient

* ESP8266WebServer: set write timeout before sending content
2016-06-23 17:47:18 +08:00
Ivan Grokhotkov
e64e32b329 Fix regression in WiFiClientSecure, update HTTPS test case (#2150) 2016-06-15 11:49:51 +08:00
Ivan Grokhotkov
da17d5425a Fix regression in WiFi.onEvent, add testcase (thanks @everslick) 2016-06-14 13:09:46 +08:00
Ivan Grokhotkov
b4490cd76d Fix issue when WiFi.begin(ssid, pass) is called right after WiFi.mode(WIFI_OFF)
If ssid and pass matched the values in flash, wifi_station_connect was not called and no connection was attempted
2016-06-14 13:07:08 +08:00
Ivan Grokhotkov
43412970ae Fix for crash in WiFiClientSecure when WiFi is disconnected (#2139)
* WiFiClient: implement stopAll() via stop()

* WiFiClientSecure: clean up ClientContext used by axTLS when stop is called (#2097)
2016-06-13 18:36:30 +08:00
Ivan Grokhotkov
9dd7910aed Enable SO_REUSE in LwIP and WiFiServer (#1431) (#2140) 2016-06-13 10:36:10 +08:00
Ivan Grokhotkov
00065ac347 Allow DHCP client to be re-enabled using WiFi.config(0U, 0U, 0U) (#1896) 2016-06-12 14:44:15 +08:00
Ivan Grokhotkov
de166c9dd7 WiFi event handling refactoring (#2119) 2016-06-10 07:46:10 +08:00
Ivan Grokhotkov
7fd7ca6834 WiFiServer: fix error when calling close more than once 2016-06-08 17:32:45 +08:00
Anton Sokolchenko
533a600d95 Add virtual destructor to WiFiServer class (#2116)
Without this line compiler complains about :

Warning		22:9: warning: deleting object of polymorphic class type 'WiFiServer' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]		\\Mac\Home\Documents\Visual Studio 2015\Projects\BlinkESP8266_12\ActAsWiFi_server\SVServer.cpp	22

Reason for this is that I would like to init WiFiServer with port which can by dynamically chosen (for example by serial port)

internalServer = new WiFiServer(port);
2016-06-08 15:51:50 +08:00
Ivan Grokhotkov
e8b8a606e4 Update axTLS to 139914f
- Fix occasional software WDT due to lengthy bigint operations
- Implement truly blocking reads as a workaround for half-duplex nature of axTLS
2016-05-10 23:34:33 +08:00
Ivan Grokhotkov
f2fb43cabf Prevent WiFi config corruption (#1997 #1856 #1699 #1675) 2016-05-10 15:27:06 +08:00
Ivan Grokhotkov
a2b82ed6b6 Use gcc-built LwIP by default (#1926)
It is still possible to use xcc-built LwIP by selecting "Core Development" board from tools menu.
2016-05-06 20:09:15 +08:00
luc
f95f0ed321 Fix WiFiSleepType_t values to match SDK ones 2016-05-05 19:38:32 +02:00
Ivan Grokhotkov
33723a9b52 Fix UdpContext::peek to return int (#1946) 2016-04-26 16:02:07 +08:00
Ivan Grokhotkov
8c65f2fcd0 Update axTLS to fe4518d, SNI support in WiFiClientSecure (#1285)
Fixes #1933
2016-04-19 08:29:13 +03:00
Ivan Grokhotkov
18f66e9969 Merge pull request #1892 from me-no-dev/lwipsrc
Update and move lwIP headers, add options to use different lwIP build for generic device
2016-04-13 14:32:04 +03:00
Ivan Grokhotkov
e82b74eab2 Merge pull request #1850 from 4m1g0/fixPSK
Allow PSK instead of passphrase in WiFiSTA::begin
2016-04-13 14:17:46 +03:00
Ivan Grokhotkov
fa7e9037a4 Merge pull request #1880 from sauttefk/master
Re-enable old behaviour if passphrase string is empty
2016-04-13 14:17:13 +03:00
4m1g0
a06ceb8191 Merge branch 'master' into fixPSK 2016-04-10 23:38:52 +02:00
Me No Dev
bfe9f7be69 Update and move lwIP headers, add options to use different lwIP build for generic device
Makefile added to lwip source folder to build and install liblwip_gcc.a
2016-04-10 21:55:22 +03:00
Jacob Killelea
1bfec4ea8e Spelling correction in comments 2016-04-08 19:21:58 -06:00
Frank Sautter
4684e44902 Re-enable old behaviour if passphrase string is empty
An empty passphrase string should enable AUTH_OPEN mode of softAP.
This was the behaviour before commit 293e55c.
Additionally make the type of checking for empty strings consistent.
2016-04-08 10:26:11 +02:00
Hemal Chevli
e4e182a966 Rectified mistake in if condition
thanks to @chaeplin for finding the mistake
2016-04-05 13:12:22 +05:30
Hemal Chevli
81859c5df6 Changed timeout logic
Changed timeout to unsigned long. Using addition with millis() is not recommended. 
Source: http://www.gammon.com.au/millis
2016-04-05 10:53:15 +05:30
4m1g0
1b8f6d2e8e Allow PSK instead of passphrase in WiFiSTA::begin
In WPA protocol, the maximum length of the passphrases are 64 characters in order to distinguish them from the actual PSK who is 64 ASCII characters long, so in most systems if a 64 chars string is passed, it is assumed to be a PSK, otherwise is treated as a passphrase and is used to compute the PSK.
2016-04-03 03:31:57 +02:00
Ivan Grokhotkov
19e97bfe15 Fix WiFiUDP::peek return value when buffer is empty (#1796) 2016-03-24 01:21:29 +03:00
Ivan Grokhotkov
213914e1ce Fix undefined behaviour in WiFiServer::setNoDelay (#1695) 2016-03-24 01:14:48 +03:00
Jacob Killelea
303af24467 Spelling correction in comments 2016-03-21 12:42:18 -07:00
Ivan Grokhotkov
aa67d1c492 Pass errors from udp_sendto to WiFiUDP::endPacket (#1696) 2016-03-02 19:58:35 +03:00
Ivan Grokhotkov
33e5ca44df WiFiClient: fix write behaviour when connection is closed by remote side
Don't wait for data to be ACKed if we have just called abort().
2016-03-02 17:53:42 +03:00
Ivan Grokhotkov
2c40d82459 WiFiClientSecure: implement connection timeout, fix connected method behaviour 2016-03-02 16:30:32 +03:00
Ivan Grokhotkov
fbe58b7b14 WiFiClientSecure: don't panic if memory allocation fails
If it fails due to a malloc somewhere in bigint.c, we will still crash (although with a less obvious crash message). If it fails in increase_bm_data_size, axTLS will handle this and report that connection has been aborted. This error will be passed on to the user, so that an application can recover and attempt to reconnect.
2016-02-26 18:41:27 +03:00
Ivan Grokhotkov
fcf9c0d7ce Verify domain name in WiFiClientSecure::verify 2016-02-26 18:41:27 +03:00
Markus Sattler
3e9dede14e speed up WiFi.hostByName when the hostname is actually a IP. 2016-02-18 23:07:51 +01:00