@@ -66,6 +66,7 @@ $ sudo docker run --name esp8266 -it --rm -v $PWD:/src/project dtec/esp8266:1.22
66
66
| 6 | ntp | Network Time Protocol client |
67
67
| 7 | gpioctl | GPIO control management |
68
68
| 8 | sched | Cron-like scheduler |
69
+ | 21 | dev.dht | DHT11/AM2302 sensor |
69
70
70
71
### 4.2. Service documentation
71
72
@@ -264,10 +265,29 @@ Message body is a sequence of AVP
264
265
- ** Data** - attribute value data (4-bytes aligned)
265
266
266
267
267
- #### 4.2.5. Network Time Protocol client (ntp )
268
+ #### 4.2.5. Light-weight shell (lwsh )
268
269
269
270
##### 4.2.5.1. Configuration parameters
270
271
272
+ This service hasn't any configurable parameters
273
+
274
+ ##### 4.2.5.2. Message types
275
+
276
+ | MsgType| Command| Description|
277
+ | -------| -------| -----------|
278
+ | 1| INFO| Query current loaded script information |
279
+ | 10| ADD| Add new script|
280
+ | 11| REMOVE| Remove existing script|
281
+ | 12| RUN| Run existing script (will load from source if needed)|
282
+ | 13| DUMP| Dump byte-code of loaded existing script|
283
+ | 14| SOURCE| Get source of existing script from Flash-DB|
284
+ | 15| LOAD| Load existing script from source (Flash-DB)|
285
+ | 16| LIST| List all stored scripts from Flash-DB|
286
+
287
+ #### 4.2.6. Network Time Protocol client (ntp)
288
+
289
+ ##### 4.2.6.1. Configuration parameters
290
+
271
291
| Parameter| Level| Description| Default|
272
292
| ---------| -----| -----------| -------|
273
293
| common.Time-Zone| 0 | Local Timezone (1/4 hours) | +0:00 |
@@ -287,13 +307,70 @@ Example:
287
307
}
288
308
```
289
309
290
- ##### 4.2.5 .2. Message types
310
+ ##### 4.2.6 .2. Message types
291
311
292
312
| MsgType| Command| Description|
293
313
| -------| -------| -----------|
294
314
| 1| INFO| Query information (state, peers, etc.) |
295
315
| 10| SETDATE| Query NTP peers and try to set local datetime|
296
316
317
+ #### 4.2.7. GPIO control management (gpioctl)
318
+
319
+ ##### 4.2.7.1. Configuration parameters
320
+
321
+ This service hasn't any configurable parameters
322
+
323
+ ##### 4.2.7.2. Message types
324
+
325
+ | MsgType| Command| Description|
326
+ | -------| -------| -----------|
327
+ | 1| INFO| Query GPIO perepherial information |
328
+ | 10| OUTPUT_SET| Set output parameters for GPIO PIN (value, delay, function)|
329
+
330
+ #### 4.2.8. Cron-like scheduler (sched)
331
+
332
+ ##### 4.2.8.1. Configuration parameters
333
+
334
+ This service hasn't any configurable parameters
335
+
336
+ ##### 4.2.8.2. Message types
337
+
338
+ | MsgType| Command| Description|
339
+ | -------| -------| -----------|
340
+ | 1| INFO| Query scheduled task information |
341
+ | 10| ADD| Add new task|
342
+ | 11| REMOVE| Remove existing task|
343
+ | 12| RUN| Run existing task|
344
+ | 13| SOURCE| Get source of existing task from Flash-DB|
345
+ | 14| LIST| List all stored tasks from Flash-DB|
346
+
347
+ #### 4.2.9. DHT11/AM2302 sensor (dev.dht)
348
+
349
+ ##### 4.2.9.1. Configuration parameters
350
+
351
+ | Parameter| Level| Description| Default|
352
+ | ---------| -----| -----------| -------|
353
+ | common.Perepherial-GPIO-Id| 0 | GPIO PIN id | 4 |
354
+ | dht.Sensor-Type| 0 | Sensor type (0- DHT11, 1- AM2302) | 0- DHT11 |
355
+ | dht.Stat-Timeout| 0 | Query data timeout for statistics (last, average) (seconds) | 20 |
356
+ | dht.Hist-Interval| 0 | - | 4 |
357
+ | dht.EMA-Alpha-Percent| 0 | Estimated moving average alpha | 90 |
358
+ | dht.Threshold-High| 0 | Increasing high threshold notification (object) | |
359
+ | dht.Humidity| 1 | Humidity PCT (1/100) | |
360
+ | dht.Temperature| 1 | Temperature Celseus (1/100) | |
361
+ | common.Milticast-Signal| 1 | Notification multicast signal_id (32-63)|
362
+ | dht.Threshold-Low| 0 | Decreasing low threshold notification (object) | |
363
+ | dht.Humidity| 1 | Humidity PCT (1/100) | |
364
+ | dht.Temperature| 1 | Temperature Celseus (1/100) | |
365
+ | common.Milticast-Signal| 1 | Notification multicast signal_id (32-63)|
366
+
367
+ ##### 4.2.9.2. Message types
368
+
369
+ | MsgType| Command| Description|
370
+ | -------| -------| -----------|
371
+ | 1| INFO| Query service information (last data response, average statistics, etc.)|
372
+ | 10| QUERY| Query data from sensor |
373
+
297
374
298
375
## 5. Examples
299
376
0 commit comments