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
{{ message }}
Repository navigation
Commit 01a7814
Browse filesBrowse the repository at this point in the historyBrowse files
docs: record where the M/O annotation goes, and lowercase hex
The annotation moves above the key, which is both what it means and what
survives Prettier. Prettier also lowercases hex digits, so the id
examples follow.
For hex values > 9 (where hex differs from decimal), add decimal in comment:
262
266
```javascript
263
-
id:0x000A, // 10
267
+
id:0x000a, // 10
264
268
id:0x0010, // 16
265
269
id:0x0100, // 256
266
270
```
@@ -271,9 +275,10 @@ id: 0x0000,
271
275
id:0x0009,
272
276
```
273
277
274
-
For multi-line definitions, decimal goes on the `id:` line, M/O on opening brace:
278
+
For multi-line definitions, decimal goes on the `id:` line, M/O above the key:
275
279
```javascript
276
-
operatingMode: { // Optional
280
+
// Optional
281
+
operatingMode: {
277
282
id:0x0025, // 37
278
283
type:ZCLDataTypes.enum8({
279
284
normal:0,
@@ -300,7 +305,7 @@ attr3: { ... },
300
305
301
306
| Field | Required | Notes |
302
307
|-------|----------|-------|
303
-
|`id`| Yes | Always 4-digit hex format (0x0000); add decimal comment if > 9 |
308
+
|`id`| Yes | Always 4-digit hex format (0x0000), lowercase digits; add decimal comment if > 9 |
304
309
|`args`| If has params | Object with typed fields |
305
310
|`response`| If expects response | Has own `id` and `args`|
306
311
|`encodeMissingFieldsBehavior`| Controls the behavior of missing fields when encoding the struct | Set to `skip` if some fields are optional, omit if all fields are mandatory |
0 commit comments