Update device identifier format from UUID to NanoID in example.jsonc, mqtt.md, schema.json, and schema.md; enhance documentation to reflect changes in device ID representation.

This commit is contained in:
2025-07-07 18:52:54 +08:00
parent 6c90561b6f
commit fb42ca777f
5 changed files with 17 additions and 21 deletions

View File

@ -8,11 +8,11 @@
//
// for descriptive mode, everything should self contained (like unit, sample interval, etc.)
"mode": "descriptive",
"dev_id": "148413b4-c352-49a9-9c48-9d15276a99e7", // uuid-v4, unique for each device
"dev_id": "2B1oj2S5k7kS8mL_QaCs", // NanoID, unique for each device
"dev_type": "device_type_name",
// "dev_type field supports:
// string: designated by a unique string
// {"type_id": "148413b4-c352-49a9-9c48-9d15276a99e7"} // uuid-v4, unique for each device type
// {"type_id": "2B1oj2S5k7kS8mL_QaCs"} // NanoID, unique for each device type
// {"type_name": "device_type_name"} // unique string, same as the string above
"timestamp": 1715145600, // UNIX timestamp in seconds
// timestamp fields supports: