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
Copy file name to clipboardExpand all lines: DeviceHiveESP8266.md
+21-7
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
# Table of contents
6
6
*[Overview](#overview)
7
7
*[Getting started](#getting-started)
8
+
*[SSL support](#ssl-support)
8
9
*[Local services](#local-services)
9
10
*[mDNS](#mdns)
10
11
*[RESTful API](#restful-api)
@@ -151,6 +152,18 @@ After rebooting you can send commands to DeviceHive server or local RESTful API
151
152
152
153
Now you can start writing your own program to create your own IoT devices with your favorite language and frameworks using DeviceHive [RESTful API](http://devicehive.com/restful) which you can transmitted with HTTP(S) or Websockets. List of accepted command for ESP8266 is listed in this document.
153
154
155
+
# SSL support
156
+
Firmware supports encrypted WebSocket server connectity using Transport Layer Security (TLS). Server should support TLSv1.1 and TLS_RSA_WITH_AES_128_CBC_SHA or TLS_RSA_WITH_AES_256_CBC_SHA cipher.
157
+
158
+
Please note, chip has 2 KB buffer for secure data, so ssl handshake should not be more otherwise connection reset would occur. To check size of the handshake, run this command:
SSL handshake has read 4796 bytes and written 336 bytes
165
+
```
166
+
154
167
# Local services
155
168
Firmware sets chip hostname and announce chip with mDNS using configured DeviceId. Hostname is limited with 32 chars, further DeiviceId's chars are omitted.
156
169
@@ -231,7 +244,9 @@ This is auxiliary command that is used to get a list of supported commands. This
231
244
and output looks like:
232
245
233
246
```json
234
-
[
247
+
{
248
+
"commands":
249
+
[
235
250
"gpio/write",
236
251
"gpio/read",
237
252
"gpio/int",
@@ -243,7 +258,8 @@ and output looks like:
243
258
"uart/int",
244
259
"uart/terminal",
245
260
...
246
-
]
261
+
]
262
+
}
247
263
```
248
264
249
265
The `command/list` command is used on the `tryapi.html` page to provide command suggestion.
@@ -355,7 +371,6 @@ JSON with a set of key-value pairs, where key is pin number and value is one of
355
371
*Example*:
356
372
```json
357
373
{
358
-
"all":"read",
359
374
"0":"read"
360
375
}
361
376
```
@@ -376,8 +391,7 @@ Json with set of key-value, where key is ADC channel and value is period in mill
376
391
*Example*:
377
392
```json
378
393
{
379
-
"0":"1000",
380
-
"0":"disable"
394
+
"0":"1000"
381
395
}
382
396
```
383
397
@@ -529,7 +543,7 @@ Return "OK" in status and json like below in result on success. Or "Error" and d
0 commit comments