Commit graph

695 commits

Author SHA1 Message Date
Rick Sellens
29c6534392 Update AdafruitIO.cpp 2020-01-02 15:19:14 -05:00
Rick Sellens
d5944584a8 change to io.wifi_disconnect() 2020-01-02 15:03:25 -05:00
Rick Sellens
6711e6e2c1 Revert "changed from _disconnect() to _wifi_disconnect()"
This reverts commit 7d4fd8b1a5.
2020-01-02 14:54:07 -05:00
Rick Sellens
7d4fd8b1a5 changed from _disconnect() to _wifi_disconnect()
makes it clear the function is only disconnecting wifi
2020-01-02 14:47:33 -05:00
Rick Sellens
a1ac2a26bb Change indenting in AdafruitIO_AIRLIFT.h
Will do the same with others
2020-01-02 14:17:53 -05:00
Rick Sellens
c2b359d559 add io.disconnect()
just calls the network _disconnect()
2019-12-27 12:28:55 -05:00
Rick Sellens
6201370d6f Add _disconnect to other Wifi
also some doxygen
2019-12-27 12:19:20 -05:00
Rick Sellens
3e27a60446 added doxygen file headers to wifi files 2019-12-27 11:36:58 -05:00
Rick Sellens
73459dcf62 Revert "Revert "Test for non-empty SSID before connecting""
This reverts commit 0edd235a4c.
2019-12-27 11:24:17 -05:00
Brent Rubell
f7ecc16e36
Bump version for release 3.3.1 2019-12-27 08:49:52 -05:00
Brent Rubell
90298d94f0
Merge pull request #103 from sellensr/master
Improve WiFi Resilience and Flexibility
2019-12-27 08:45:53 -05:00
Rick Sellens
c7597668ee more doxygen
improved doxygen comments
2019-12-24 14:07:45 -05:00
Rick Sellens
068d92df25 Doxify AdafruitIO.h, AdafruitIO.cpp
Briefs could be expanded, but it's a start.
Reordered to put instatiation, initialization, destruction together.
No code changes.
2019-12-24 10:01:46 -05:00
Rick Sellens
0edd235a4c Revert "Test for non-empty SSID before connecting"
This reverts commit fef4ea4def.
2019-12-23 12:05:13 -05:00
Rick Sellens
50c5055ee9 Revert "Update .gitignore"
This reverts commit 9f441b1e58.
2019-12-23 12:05:06 -05:00
Rick Sellens
53430090f3 Revert "Example for self managed WiFi"
This reverts commit f9751a6ea6.
2019-12-23 11:59:55 -05:00
Rick Sellens
f9751a6ea6 Example for self managed WiFi 2019-12-22 14:23:21 -05:00
Rick Sellens
9f441b1e58 Update .gitignore 2019-12-22 13:38:14 -05:00
Rick Sellens
fef4ea4def Test for non-empty SSID before connecting
In the WiFi code, test that SSID is a non-empty string before trying to connect. Disconnect any existing wifi connection and pause long enough for it to take before going ahead.

Indentations unchanged in this commit just so it is obvious that the connection code is unchanged.
2019-12-22 10:34:48 -05:00
Rick Sellens
bce49c3c7d Add capacity to fail_fast
Add an optional fail_fast parameter to run() and mqttStatus() to allow them to return promptly if desired by the calling sketch.

Detect a network failure and attempt to reconnect unless fail_fast is true.
2019-12-22 09:06:07 -05:00
Brent Rubell
1e70236208
Merge pull request #100 from sellensr/master
Don't crash on network disconnect
2019-12-18 09:11:39 -05:00
Rick Sellens
3950f25135 Update library.properties to V3.3.0 2019-12-13 18:27:30 -05:00
Rick Sellens
c071621a8c Requested changes from pull request comments 2019-12-10 14:00:26 -05:00
Rick Sellens
350bb8951e Remove example 2019-12-09 19:08:27 -05:00
Rick Sellens
5ebff21d1d Update adafruitio_02_pubsub_protected.ino
Switched to use io.run() for status checking. Comments and formatting
2019-12-09 18:42:35 -05:00
Rick Sellens
57e0ba99de add timeout in io.run()
io.run will now return after a very long timeout instead of just hanging
2019-12-09 15:57:39 -05:00
Rick Sellens
246a482e93 add return to io.run() 2019-12-09 15:34:04 -05:00
Rick Sellens
51d3096b7f io.run now returns status, doesn't hang
This walks back my more agreesive solution in the interest of backwards compatibility.

It provides a new example that protects against dropped network connections.
2019-12-09 15:20:43 -05:00
Rick Sellens
8edac233b3 Revert "Detect dropped network connection"
This reverts commit 4639a9fbad.
2019-12-09 14:33:25 -05:00
Rick Sellens
5d0c2afba7 Revert "allow mqttStatus() to return without waiting for connection"
This reverts commit f3d1eb6694.
2019-12-09 14:29:55 -05:00
Rick Sellens
e1a523337c Revert "add comment"
This reverts commit c99b2346cb.
2019-12-09 14:29:49 -05:00
Rick Sellens
abd05e1f30 Revert "Update AdafruitIO.cpp"
This reverts commit 3531a8b450.
2019-11-17 14:04:55 -05:00
Rick Sellens
3531a8b450 Update AdafruitIO.cpp 2019-11-17 14:01:08 -05:00
Rick Sellens
c99b2346cb add comment 2019-11-17 11:17:22 -05:00
Rick Sellens
f3d1eb6694 allow mqttStatus() to return without waiting for connection
Old version would delay(AIO_THROTTLE_RECONNECT_INTERVAL) before returning. This could leave the sketch stuck in limbo for 60 seconds.

Modification remembers last try at connection and doesn't try again until the interval has passed.
2019-11-17 11:13:43 -05:00
Rick Sellens
4639a9fbad Detect dropped network connection
Check networkStatus() in mqttStatus() before attempting to reconnect MQTT. Fail quickly to avoid the ~20 seconds for MQTT connect attempts to timeout.

Allow run() to return if the MQTT connection is down, without any other action. The calling sketch can then check network status, etc. to fix the problem. Checking mqttStatus() once per loop() is enough to allow it to retry the MQTT connection when needed.

https://github.com/adafruit/Adafruit_IO_Arduino/issues/99
2019-11-17 08:35:11 -05:00
Brent Rubell
23985c62b1
Merge pull request #97 from kintel/uno-wifi
Add support for float formatting on Arduino UNO Wifi Rev. 2
2019-11-13 09:59:45 -05:00
Marius Kintel
fddf6d20d4 Bumped version to 3.2.3 2019-11-13 08:13:05 -05:00
Marius Kintel
0d1f31da5d Add support for float formatting on Arduino UNO Wifi Rev. 2 2019-11-07 22:49:53 -05:00
siddacious
aea932de02
Update library.properties 2019-09-13 15:34:03 -07:00
Brent Rubell
f0c9118d5d
Merge pull request #95 from bangseongbeom/patch-2
Fix a wrong link
2019-08-29 09:23:38 -04:00
방성범 (Bang Seongbeom)
4d4a3cfbab
Fix a wrong link 2019-08-29 21:00:29 +09:00
siddacious
197476e733
Merge pull request #94 from bangseongbeom/patch-1
Fix typo
2019-08-09 22:57:26 -07:00
방성범 (Bang Seongbeom)
81c22ca17b
Fix typo 2019-08-10 14:05:25 +09:00
Brent Rubell
abe2edb226
Merge pull request #92 from brentru/default-to-nina-pins
Examples use WIFININA Pin Names
2019-07-23 09:46:35 -04:00
brentru
b28405c42e bump lib ver 2019-06-20 17:10:14 -04:00
brentru
658899dd73 modifying examples to maintain nina pin standard 2019-06-20 16:53:26 -04:00
brentrubell
b7bce759e4
Update README.md
Add Airlift, update license date.
2019-05-22 10:44:38 -04:00
brentrubell
63fc4e98b8
Merge pull request #89 from brentru/master
Fix ESP8266 Compatibility and add SSL fingerprinting
2019-05-22 10:43:39 -04:00
brentru
8cc0994827 update travis to reflect adafruit master, add .m4wifi skip files 2019-05-22 10:05:15 -04:00