File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ This is hosted by a webserver and contains information about the latest firmware
44
44
"version" : 2 ,
45
45
"host" : " 192.168.0.100" ,
46
46
"port" : 80 ,
47
- "bin" : " /fota/esp32-fota-http-2.bin" ,
48
- "check_signature" : true
47
+ "bin" : " /fota/esp32-fota-http-2.bin"
49
48
}
50
49
```
51
50
@@ -55,8 +54,7 @@ Version information can be either a single number or a semantic version string.
55
54
{
56
55
"type" : " esp32-fota-http" ,
57
56
"version" : " 2.5.1" ,
58
- "url" : " http://192.168.0.100/fota/esp32-fota-http-2.bin" ,
59
- "check_signature" : true
57
+ "url" : " http://192.168.0.100/fota/esp32-fota-http-2.bin"
60
58
}
61
59
```
62
60
@@ -124,7 +122,7 @@ void loop()
124
122
You can now sign your firmware image with an RSA public/private key pair and have the ESP32 check if the signature is correct before
125
123
it switches over to the new image.
126
124
127
- In order to use this feature, enable `check_signature` in `firmware.json` . Next create a key-pair to sign your firmware image:
125
+ In order to use this feature just set the boolean `validate` to `true` in the constructor . Next create a key-pair to sign your firmware image:
128
126
```
129
127
openssl genrsa -out priv_key.pem 4096
130
128
openssl rsa -in priv_key.pem -pubout > rsa_key.pub
@@ -160,4 +158,4 @@ This relies on [semver.c by h2non](https://github.com/h2non/semver.c) for semant
160
158
* @nuclearcat
161
159
* @thinksilicon
162
160
* @nuclearcat
163
- * @hpsaturn
161
+ * @hpsaturn
You can’t perform that action at this time.
0 commit comments