1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-24 08:45:10 +03:00

231 Commits

Author SHA1 Message Date
jtfell
6f05da45cf add ESP8266WiFiMesh library 2015-06-19 21:12:47 +03:00
Peter Newman
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
John Doe
d441d8485e allow proper content length handling 2015-06-16 00:25:34 +03:00
Me No Dev
960ada04c3 Merge pull request #4 from esp8266/esp8266
Esp8266
2015-06-12 20:36:35 +03:00
John Doe
a409ce2e6b fix example not working on firefox 2015-06-12 20:31:09 +03:00
Ivan Grokhotkov
c51acf2a32 Fix tcp error handler 2015-06-11 18:11:26 +03:00
Ivan Grokhotkov
e6e57a8b81 Better handling of wifi disconnect (#231)
When network interface is down, some nasty things happen, for instance tcp_connect returns without ever calling error callback.
This change adds some workarounds for that: before doing a tcp connect and DNS resolve we check if there is a route available.
Also added a listener for wifi events which stops (aborts) all the WiFiClients and WiFiUDPs when wifi is disconnected. This should
help libraries detect disconnect properly.
2015-06-11 18:01:33 +03:00
Ivan Grokhotkov
567d401ed3 Merge pull request #406 from me-no-dev/esp8266
fix sd example returning bad json on empty folder
2015-06-11 12:38:52 +03:00
Kristijan Novoselic
c570d0f593 Added a DNSServer library 2015-06-11 12:37:30 +03:00
John Doe
fe562e6785 fix sd example returning bad json on empty folder 2015-06-09 01:34:59 +03:00
Markus Sattler
51cd867af3 Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266 2015-06-05 15:43:33 +02:00
Dario Di Maio
7f66a3a415 Remove unnecessary ICACHE_FLASH_ATTR 2015-06-05 15:58:44 +03:00
Markus Sattler
1544a6ad0f Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266 2015-06-05 14:47:34 +02:00
Markus Sattler
b620060671 do check if ssid is an empty String ""
use strdup to save some flash

#386 part 2
2015-06-05 12:57:00 +02:00
Ivan Grokhotkov
3ff5947305 Merge pull request #370 from Links2004/esp8266
add better docu and schematics for easy setup the ESP
2015-06-05 13:55:34 +03:00
Markus Sattler
c0df9b0430 fix #386 2015-06-05 11:48:02 +02:00
chad cormier roussel
7daa6c6b69 Add function overload to config to include DNS
Disable DHCP if using static IP

With dhcp disabled, I noticed about 50% less conncection time
2015-06-03 15:29:25 -04:00
Markus Sattler
fa4fd9ed9d only call wifi_set_opmode when really needed 2015-06-03 15:40:43 +02:00
Markus Sattler
1de33fe51b improve mode handling for ESP8266WiFiClass::scanNetworks and ESP8266WiFiClass::beginSmartConfig 2015-06-03 15:10:35 +02:00
John Doe
d87bb1e12e spi clock does not depend on cpu clock 2015-06-02 01:13:15 +03:00
Me No Dev
b68dfbc7ce Merge pull request #2 from esp8266/esp8266
asd
2015-06-02 00:13:08 +03:00
John Doe
6ab3c76e03 register and clock changes 2015-06-02 00:11:20 +03:00
Ivan Grokhotkov
6472dfe0d1 Merge pull request #358 from Makuna/Servo
Servo library
2015-06-01 02:20:23 +03:00
Wietse van Buitenen
5c1ee1f7ad Use correct variable for sendNTPpacket 2015-05-31 13:04:11 +02:00
Makuna
3c3bc0f523 Timer0 and Servo library support
This exposes the Timer0
This provides a Servo library support compatible with Arduino Servo
library but only supports the two timers the esp8266 has available
2015-05-29 13:30:15 -07:00
Ivan Grokhotkov
0c7e225bd5 Merge pull request #325 from Links2004/esp8266
add 2 compiler options from last SDK, __attribute__ format to Print::printf,  link to arduinoWebSockets
2015-05-29 19:44:32 +03:00
Markus Sattler
f18bb28813 fix bug #343
add __attribute__ to printf functions for better compiler warning handling.
remove ICACHE_FLASH_ATTR, all cpp files are automatic in FLASH (ld script)
2015-05-28 18:58:09 +02:00
Markus Sattler
c415ebe8b4 add function to get the MAC / BSSID as String 2015-05-28 17:31:45 +02:00
moeur
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
Markus Sattler
5852c484ca add ESP.eraseESPconfig() to erase the ESP SDK configuration (including wifi)
improve WiFiMulti
2015-05-25 12:29:26 +02:00
Markus Sattler
1d2b85ec0e disable DEBUG_WIFI_MULTI define 2015-05-25 09:49:15 +02:00
Markus Sattler
5a86c20f1e add rssi function of new SDK 1.1.0
fix warning in hexdump and ESP8266WiFiMulti
2015-05-25 09:47:13 +02:00
Ivan Grokhotkov
49aeb79b05 Add API to set the beginning of local ports range for WiFiClient 2015-05-24 23:15:05 +03:00
Ivan Grokhotkov
4fdd546ad5 Fix build 2015-05-24 15:35:18 +03:00
Ivan Grokhotkov
db1e033186 Remove SPIFFS wrapper 2015-05-23 10:13:59 +03:00
Ivan Grokhotkov
3422294a7f Fix typo 2015-05-22 18:16:44 +03:00
Ivan Grokhotkov
f7dbb35c92 Fix case of WiFi.channel() method 2015-05-22 18:11:09 +03:00
Ivan Grokhotkov
8fdb824e11 Add setContentLength method to web server, update examples
related to #304
2015-05-22 17:57:30 +03:00
Ivan Grokhotkov
21d50e104c Web server: disconnect at the end of callback, not after sendContent (#304) 2015-05-22 16:19:08 +03:00
Ivan Grokhotkov
5bdb26ac29 code review 2015-05-22 03:36:04 +03:00
Ivan Grokhotkov
57a1bdc99f Merge branch 'Links2004-esp8266' into esp8266
* Links2004-esp8266:
  ESP8266WiFi extended functions
2015-05-22 03:15:49 +03:00
Markus Sattler
bc37b9ea68 ESP8266WiFi extended functions
- begin changes
     allow setting BSSID/MAC and Channel of an AP for faster connection (#261)
     now checks if ssid and passphrase to big
     selecting Wifi mode in better way (fix for #28)

 - ESP8266WiFiMulti uses the new functions to auto select best AP even in a multi AP WiFi network (more the one AP has same SSID)

 - add new functions to get current Connected AP:
     uint8_t * BSSID(void);
     int32_t Channel(void);

 - add new functions to get infos from scanned networks:
     uint8_t * BSSID(uint8_t networkItem);
     int32_t Channel(uint8_t networkItem);
     bool isHidden(uint8_t networkItem);
     bool getNetworkInfo(uint8_t networkItem, const char** ssid, uint8_t * encryptionType, int32_t * RSSI, uint8_t ** BSSID, int32_t * channel, bool * isHidden);
2015-05-21 21:15:54 +02:00
ficeto
24ce4518d7 Merge pull request #32 from esp8266/esp8266
pull master
2015-05-21 21:45:31 +03:00
ficeto
2e6fe502a4 Add File System Server Example
Serve files from the onboard flash
Edit them with the included file manager (http://esp8266fs.local/edit)
Create simple graphs filled with sensor data with the included simple
library (example is the index page, editable through the editor)
The sketch uses the new extension for packing files into SPIFFS image
and uploading it to your ESP8266
2015-05-21 21:23:14 +03:00
Markus Sattler
a34edc8990 Merge remote-tracking branch 'remotes/ficeto/esp8266' into esp8266 2015-05-21 19:25:08 +02:00
ficeto
866ab26433 add gzip content support for HTML File streaming 2015-05-21 14:05:00 +03:00
Ivan Grokhotkov
b1f2fdb9cc EEPROM: fix incorrect start address, support multiple instances
related to #279, #240
2015-05-21 10:56:10 +03:00
Markus Sattler
4015a47b08 add one missing const 2015-05-20 20:04:15 +02:00
Markus Sattler
a0b1dff542 code style 2015-05-20 19:48:24 +02:00
Markus Sattler
4b786d0df6 add more functions to handle sha1 in differed cases 2015-05-20 19:41:40 +02:00