1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-10 14:42:08 +03:00
Commit Graph

39 Commits

Author SHA1 Message Date
61cd8d8385 examples: format all .ino files
This formats all the example source files using Arduino style rules.
2018-03-08 14:32:06 +08:00
f9ac524b13 Add -Werror to acceptance builds for C and CPP (#4369)
Use platform.local.txt to add -Werror to GCC for the build of all
code.  Any warnings on a submitted patch will cause an error.

Several examples and libraries had warnings/errors (missing returns
on functions, types, etc.).  Clean those up with this commit as well.
2018-02-17 18:47:10 -08:00
c8dbfb160b Refrech api.github.com x509 certificate (#4306)
The certificate fingerprint included with the HTTPSRequest example seems
to be for an expired api.github.com certificate.  Replace with the current
one to avoid reporting "certificate mismatch" errors when running.
2018-02-06 11:06:05 -03:00
84228b1c73 Nameoftherose patch for Issue #2435 (#4256)
* WiFiTelnetToSerial Example - Minor Issues #2435

* WiFiTelnetToSerial Example - Minor Issues #2435

Patch to rectify issue #2435
2018-01-29 13:28:28 -03:00
bd1c7ce1dc Add SSL enabled WiFiServer, Updater, WebServer
Adds SSL server mode for WiFiServerSecure, for plain SSL connections,
ESP8266WebServerSecure, for HTTPS web serving, and SecureHTTPSUpdater for
encrypted OTA updates.

Example code is provided for all new options, as well as a BASH script for
generating their own, self-signed certificates.

Both ESP8266WebServerSecure and SecureHTTPSUpdater are important for secure
password-based authentication.  HTTP Basic Authentication, the only supported
model presently, sends the username and password in *cleartext* and therefore
should *never* be used in any un-SSL encrypted channel unless you don't mind
sharing your login and password with anyone else on the internet.  Even if the
ESP8266 is not safety critical, this cleartext broadcast could expose you should
you reuse this password elsewhere on your network or the internet.
2018-01-10 11:56:32 +08:00
7dd50360b9 Fix bug in WiFiClientBasic.ino (#3902) 2017-12-28 09:47:10 -03:00
d5bb4a99f6 in example properly wait for NTP to be set (#4000)
fix #3905
2017-12-21 16:27:58 -03:00
7df2858285 Fix comment misnomer (#3939) 2017-12-08 15:58:46 -03:00
31abb6e5e1 [doc] update HTTPSRequest.ino (#3925)
add limitations of https connections
2017-12-08 03:38:19 -03:00
2abbc36da4 Put WiFi into station mode in examples (#3731) 2017-10-22 13:53:01 +08:00
84b046f98c WiFiClientSecure: add support for keys and certificates in PROGMEM 2017-10-08 05:04:04 +08:00
a8e8ecb687 WiFiClientSecure: add example of setCACert/verifyCertChain
Ref #1851
2017-05-21 22:00:33 -05:00
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
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
e4e182a966 Rectified mistake in if condition
thanks to @chaeplin for finding the mistake
2016-04-05 13:12:22 +05:30
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
0ed104f028 add WiFi Event example 2015-12-29 14:38:13 +01:00
e166e85f73 oupps ! I forgot to set the timout value 2015-12-06 09:47:00 -05:00
6fa70bda01 replace delay with while loop in WiFiClient.ino 2015-12-06 09:42:51 -05:00
cedce24bf3 rename to WiFiClientBasic 2015-12-04 19:07:51 +01:00
34571a0e9d typo 2015-12-04 18:20:40 +01:00
2ebc7c9dc1 Merge remote-tracking branch 'remotes/esp8266/master' 2015-12-04 18:18:57 +01:00
8cec66b23b add a simple TCP example 2015-12-04 18:18:23 +01:00
14b70e9328 Allow setting client side TLS key and certificate 2015-12-04 19:02:46 +03:00
f73d414f38 WiFiClientSecure: add certificate fingerprint verification (#43) 2015-09-14 10:22:54 +03:00
c970dec6a7 Add HTTPS request sample (#43) 2015-09-13 22:50:14 +03:00
ef9b324ffd Changed Telnet Port to port 23
Best to stick to standard port numbers
https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
2015-07-14 09:04:12 +12:00
b7451114fd Don't wait for a connection to an AP when we're supposed to be the AP. 2015-06-19 20:57:19 +03:00
5c1ee1f7ad Use correct variable for sendNTPpacket 2015-05-31 13:04:11 +02:00
72ab7cd41c Update NTPClient.ino
Instead of hardwiring the IP address of one server into the program, look-up an IP address from the host name.  This way you get a random server from the pool each time.
2015-05-26 07:55:56 -07:00
85ebee75b4 Fix case in WiFiMulti example 2015-05-19 09:23:47 +03:00
6971cec922 Merge pull request #260 from UECIDE/esp8266
Two new examples
2015-05-18 14:29:24 +03:00
af533d6c5c Added missing include needed for Arduino IDE 2015-05-17 20:01:42 +01:00
0ac29dcd09 Added access point example 2015-05-17 19:59:25 +01:00
508f0802d5 add examples/WiFiMulti/WiFiMulti.ino 2015-05-16 22:47:29 +02:00
7512339b0c remove qsort dependency and add TelnetToSerial example 2015-05-12 20:41:31 +03:00
b026daf43b Fix UdpClient semantics, add NTPClient example
UdpClient used to create a new socket for each begin/beginPacket call. This made bidirectional communication impossible.
Fix #64, fix #53.
2015-04-12 01:09:45 +08:00
af99a3e388 Remove unused rx_buffer_size argument from WebServer constructor 2015-01-08 00:39:46 +03:00
d849f2298f Add samples for the ESP8266WiFi library 2014-12-23 15:39:48 +03:00