Sensor Metadata API allows you manage metadata associated with sensors. You can add, update or delete custom metadata to sensors. In addition, you can also search for sensors using metadata.
Datatypes
metadata
: A collection of namespaced key-value pairs.-
namespace
: A URL safe string (a-zA-Z0-9_-~)
-
- key/value: Any string
e.g: Below is a metadata collection with two namespaces
: messages
and urls
, each with a few key-value
pairs.
{
"messages" : {
"welcome_title" : "Hello!",
"welcome_line" : "Welcome to the store!",
"exit_title" : "Goodbye!",
"exit_line" : "Please visit us again."
},
"urls" : {
"faq" : "http://www.example.com/faq.html",
"store" : "http://www.example.com/store.html",
"support" : "http://www.example.com/support.html",
}
}