Research Article

A Multidomain Standards-Based Fog Computing Architecture for Smart Cities

Listing 3

Example of a PATCH request to update a context entity representing a gas pipeline sensor. More specifically, the request updates the pressure value of the entity with id=101615A to 75.78 bar.
PATCH http://CepheusBrokerAddress:1026/v2/entities/101615A/attrs
"pressure":
"type": "double",
"value": 75.78,
"metadata":
"unit":
"type": "Text",
"value": "bar"
}
}
}