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

115 Commits

Author SHA1 Message Date
Markus Sattler
3a34aa61e0 Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266
Conflicts:
	hardware/esp8266com/esp8266/cores/esp8266/Esp.cpp
2015-06-25 20:02:37 +02:00
Ivan Grokhotkov
565c7aeac0 Less debug output from slist 2015-06-25 00:13:55 +03:00
Markus Sattler
fdb723cbad Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266
Conflicts:
	hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_main.cpp
2015-06-23 13:08:05 +02:00
Ivan Grokhotkov
b029e78a67 Fix for wifi disconnect handling (#431) 2015-06-22 13:59:12 +03:00
Markus Sattler
1f1497264b disable WiFi DEBUG_WIFI_MULTI
add _min and _max define as workaround
2015-06-20 20:55:08 +02:00
Markus Sattler
874cf0ef98 fix exception 28 in AP + STA mode and STA disconnect
UDP triggers exception 28
2015-06-20 18:36:19 +02: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
Markus Sattler
fe1b39fa0e update AVR src
* java code not tested *

Merge remote-tracking branch 'remotes/arduino/master' into esp8266

Conflicts:
	README.md
	app/src/processing/app/AbstractMonitor.java
	arduino-core/src/processing/app/Serial.java
	libraries/WiFi/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino
	libraries/WiFi/library.properties
2015-06-17 14:24:25 +02:00
Markus Sattler
9a1ff7f70d add WiFi scan Async mode 2015-06-16 18:26:34 +02: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
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
Wietse van Buitenen
5c1ee1f7ad Use correct variable for sendNTPpacket 2015-05-31 13:04:11 +02: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
f7dbb35c92 Fix case of WiFi.channel() method 2015-05-22 18:11:09 +03:00
Ivan Grokhotkov
5bdb26ac29 code review 2015-05-22 03:36:04 +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
Ivan Grokhotkov
85ebee75b4 Fix case in WiFiMulti example 2015-05-19 09:23:47 +03:00
Ivan Grokhotkov
48c061beee temporary fix of min/max 2015-05-19 01:31:10 +03:00
Ivan Grokhotkov
2510707911 Merge branch 'master' into esp8266
* master: (414 commits)
  Don't export sketch if the underlying core does not support it. Fixes #3171
  RSyntaxTextArea: using a modified version, tracked at https://github.com/arduino/RSyntaxTextArea. Fixes #3099
  Updated keywords.txt
  New editor on MacOSX: since CMD+J is known as "jump to selection" and the editor has no such feature, CMD+J is disabled on mac. See #3098
  Old Preferences class remains for backwards compatibility as a delegate for PreferencesData
  New Preferences window: renders fine on every OS and it's easier to adapt using NetBeans as visual editor. Fixes #3140
  Remove spawn from exec command
  Removed redundant call to File.deleteIfExists()
  Removed buggy redundant check in FileUtils.deleteIfExists()
  Restored current line/current selected lines display on lower left of the IDE. Fixes #3134
  Updated cursor.ino
  New editor on MacOSX: restored CMD+E for finding selected text
  New editor on MacOSX: CMD+UP/DOWN moves cursor to start or end of sketch. See #3098
  New editor on MacOSX: CMD+BACKSPACE deletes current line until cursor position, ALT+BACKSPACE deletes previous word. See #3098
  ArduinoIDE is in the default package. Removed
  Fixes  #2969:
  Fix Uncategorized warning message
  New editor: ALT+ BACKSPACE deletes next word (OSX only). See #3098
  New editor: ALT+ UP/DOWN move current line only if "editor.advanced" (hidden pref) is true. Fixes #3101
  New editor: mark occurrences enable when "editor.advanced" (hidden pref) is true. Fixes #3102
  ...

Conflicts:
	.gitignore
	build/build.xml
	hardware/esp8266com/esp8266/libraries/ESP8266WiFi/keywords.txt
	hardware/esp8266com/esp8266/libraries/ESP8266WiFi/library.properties
	hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h
	libraries/WiFi/README.adoc
	libraries/WiFi/src/WiFi.cpp
	libraries/WiFi/src/WiFiClient.cpp
	libraries/WiFi/src/WiFiClient.h
	libraries/WiFi/src/WiFiServer.cpp
	libraries/WiFi/src/WiFiUdp.cpp
2015-05-18 14:54:06 +03:00
Ivan Grokhotkov
6971cec922 Merge pull request #260 from UECIDE/esp8266
Two new examples
2015-05-18 14:29:24 +03:00
Matt Jenkins
af533d6c5c Added missing include needed for Arduino IDE 2015-05-17 20:01:42 +01:00
Matt Jenkins
0ac29dcd09 Added access point example 2015-05-17 19:59:25 +01:00
ficeto
93c456602c Merge pull request #23 from Links2004/esp8266
pull markus's changes
2015-05-17 16:45:32 +03:00
Markus Sattler
03da6393d5 improve includes
add ssid and ip to debug out
2015-05-16 22:56:15 +02:00
Markus Sattler
508f0802d5 add examples/WiFiMulti/WiFiMulti.ino 2015-05-16 22:47:29 +02:00
Markus Sattler
108a40acfd add support for list of AP connections
- auto select ssid with best signal
 - for debugging enable DEBUG_WIFI_MULTI macro and call Serial.setDebugOutput(true);

change ESP8266WiFiClass::status() return type to wl_status_t
2015-05-16 22:40:53 +02:00
ficeto
66d9dbb070 ESP8266WiFiClass::waitForConnectResult()
waitForConnectResult() waits until wifi status is not disconnected,
unless STA is disabled, in which case it returns WL_DISCONNECTED
2015-05-16 19:00:36 +03:00
Ivan Grokhotkov
3c9d1f20bb Merge branch 'ficeto-esp8266' into esp8266
* ficeto-esp8266:
  add template methods for stream to stream writes to SD and FS
  alignment not needed. we use fixed addresses
  Rework SPIFFS API to be more Arduino like
  fix missed edits
  disable automount
  fix SPIFFS to work
  pull get/set NoDelay for WiFiClient
  Add SPIFFS Support
  export sketch data folder to the build config
  Revert "Revert "Edit SD Server example to use the new Write(Stream) method""
  add template client write
  Revert "Add WiFiClient.write for Stream"
  Revert "Edit SD Server example to use the new Write(Stream) method"
  Edit SD Server example to use the new Write(Stream) method
  Add WiFiClient.write for Stream
  make upload callback packets aligned to defined size

Conflicts:
	hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino
	hardware/esp8266com/esp8266/libraries/ESP8266WebServer/src/ESP8266WebServer.cpp
	hardware/esp8266com/esp8266/libraries/ESP8266WebServer/src/ESP8266WebServer.h
2015-05-14 14:38:22 +03:00
Ivan Grokhotkov
36d0968ada Web server refactoring 2015-05-14 13:33:12 +03:00
ficeto
3e7b8515e4 pull get/set NoDelay for WiFiClient 2015-05-13 20:01:05 +03:00
ficeto
5eee3da4d5 add template client write
can read streams that have "available()" and "read(buf, len)" methods
thanks @igrr
2015-05-13 12:47:29 +03:00
ficeto
74a2b75cf9 Revert "Add WiFiClient.write for Stream"
This reverts commit fa24d770c5096ad7a8894c3e5221c1358efe128c.
2015-05-13 12:45:48 +03:00
ficeto
f4969ce0e5 Add WiFiClient.write for Stream
reads directly from the stream and fragments the data to achieve
maximum data throughput over WiFi
2015-05-13 12:07:42 +03:00