You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commit 810ab68
Author: Ivan Grokhotkov <igrokhotkov@gmail.com>
Date: Mon Nov 9 01:37:22 2015 +0300
Fix WiFiClientSecure::connected (#43)
thanks @whyameye
commit 7384c38
Merge: 46468d4464d891
Author: Markus <Links2004@users.noreply.github.com>
Date: Sun Nov 8 23:04:52 2015 +0100
Merge pull request #985 from Links2004/docu
add missing exit in php sample
commit 464d891
Author: Markus Sattler <help.markus+git@gmail.com>
Date: Sun Nov 8 22:48:48 2015 +0100
add missing exit in php sample
commit 46468d4
Author: Ivan Grokhotkov <igrokhotkov@gmail.com>
Date: Mon Nov 9 00:18:08 2015 +0300
I2C: generate STOP in case of NACK (fix#698, #254)
thanks @petrd and @Yazzcat
commit 4cf72e7
Author: Ivan Grokhotkov <igrokhotkov@gmail.com>
Date: Sun Nov 8 23:44:25 2015 +0300
Add libc time functions
Merging igrr/axtls-8266#1 by @Juppit into the core
commit 11340a5
Author: Ivan Grokhotkov <igrokhotkov@gmail.com>
Date: Sun Nov 8 15:01:17 2015 +0300
Fix some typos
If a version String is delivered to the Function this String will be send to the server.
47
-
A Server side Update check is now possible.
42
+
Its possible to point update function to a script at the server.
43
+
If version string argument is given, it will be sent to the server.
44
+
Server side script can use this to check if update should be performed.
48
45
49
-
the Server can return a binary file for update (Header 200)
50
-
or it return header 304 to notify the ESP that no Update is needed.
46
+
Server side script can respond as follows:
47
+
- response code 200, and send the firmware image,
48
+
- or response code 304 to notify ESP that no update is required.
51
49
52
50
```cpp
53
51
t_httpUpdate_return ret = ESPhttpUpdate.update("192.168.0.2", 80, "/esp/update/arduino.php", "optional current version string here");
@@ -59,23 +57,23 @@ switch(ret) {
59
57
Serial.println("[update] Update no Update.");
60
58
break;
61
59
case HTTP_UPDATE_OK:
62
-
Serial.println("[update] Update ok."); // may not called we reboot the ESP
60
+
Serial.println("[update] Update ok."); // may not called we reboot the ESP
63
61
break;
64
62
}
65
63
```
66
64
67
65
#### Server request handling
68
66
69
-
##### simple updater
67
+
##### Simple updater
70
68
71
-
for the simple Updater the Server only needs to deliver the binary file for update.
69
+
For the simple updater the server only needs to deliver the binary file for update.
72
70
73
-
##### advanced updater
71
+
##### Advanced updater
74
72
75
-
for advanced update management a Script needs to run at the Server side, for example a PHP script.
76
-
at every Update request the the ESP sends some informations in the Header to the Server
73
+
For advanced update management a script needs to run at the server side, for example a PHP script.
74
+
At every update request the the ESP sends some information in HTTP headers to the server.
77
75
78
-
example Header data:
76
+
Example header data:
79
77
```
80
78
[HTTP_USER_AGENT] => ESP8266-http-Update
81
79
[HTTP_X_ESP8266_STA_MAC] => 18:FE:AA:AA:AA:AA
@@ -87,10 +85,9 @@ example Header data:
87
85
[HTTP_X_ESP8266_VERSION] => DOOR-7-g14f53a19
88
86
```
89
87
90
-
with this information the script now can check if a update is needed.
91
-
It is also possible to deliver different binary´s based on the MAC address for example.
88
+
With this information the script now can check if a update is needed. It is also possible to deliver different binaries based on the MAC address for example.
0 commit comments