-
Notifications
You must be signed in to change notification settings - Fork 0
/
extension.js
84 lines (84 loc) · 2.63 KB
/
extension.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
({
name: "Senses IoT", // Category Name
description: "Industrial Internet of Things platform (IIoT)",
author: "microBlock",
category: "Communication",
version: "2.1.0",
icon: "/static/icon.png", // Category icon
color: "#3498DB", // Category color (recommend some blocks color)
blocks: [ // Blocks in Category
{
xml: `
<block type="senses_config">
<value name="ssid">
<shadow type="text">
<field name="TEXT">--WiFi-Name--</field>
</shadow>
</value>
<value name="uid">
<shadow type="text">
<field name="TEXT">--UID--</field>
</shadow>
</value>
<value name="key">
<shadow type="text">
<field name="TEXT">--Device-Key--</field>
</shadow>
</value>
</block>
`
},
{
xml: `
<block type="senses_timer">
<value name="tick_sec">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
`
},
{
xml: `
<block type="senses_send">
<value name="slot">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
<value name="data">
<shadow type="math_number">
<field name="NUM">10</field>
</shadow>
</value>
</block>
`
},
{
xml: `
<block type="senses_on_received">
<value name="slot">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
`
},
"senses_get_received_as_number",
"senses_received_is_on",
"senses_run",
{
xml: `
<block type="text">
<field name="TEXT">--WiFi-Password--</field>
</block>
`
}
],
chip: [
"ESP32", // Chip support
"RP2-WiFi"
]
});