Publish on this topic to send a response for a previous write recipee request.
Response must contain the written recipe.
Request Topic and Payload
Topic
things5-production/v1/devices/<device-id>/cmd/write_recipe_res
Payload Representation
{
"request_id": "UUID sent in the request",
"errors": ["errors if any"],
"recipe": {
"id": "uniqueid",
"can_be_edited": true,
"can_be_deleted": false,
"name": "Pollo con patate al cuore",
"description": "Recipe description",
"index": 1,
"phases": [
{
"dosages":
[
{
"name": "yeast",
"quantity": "5.5",
"type": "float",
"unit": "g",
"metadata" : [{
"name": "type",
"value": "1",
"type": "integer"
}, {
"name": "temperature",
"value": "20",
"type": "integer"
}]
}
],
"values": [
{
"name": "evaporator_fan_speed",
"value": "4",
"type": "integer"
},
{
"name": "core_temperature",
"value": "-5",
"type": "integer"
},
{
"name": "cell_temperature",
"value": "-20",
"type": "integer"
}
]
},
{
"values": [
{
"name": "evaporator_fan_speed",
"value": "2",
"type": "integer"
},
{
"name": "core_temperature",
"value": "-5",
"type": "integer"
},
{
"name": "cell_temperature",
"value": "-20",
"type": "integer"
}
]
},
{
"values": [
{
"name": "evaporator_fan_speed",
"value": "1",
"type": "integer"
},
{
"name": "core_temperature",
"value": "-5",
"type": "integer"
},
{
"name": "cell_temperature",
"value": "-20",
"type": "integer"
}
]
},
{
"values": [
{
"name": "evaporator_fan_speed",
"value": "0",
"type": "integer"
},
{
"name": "cell_temperature",
"value": "-10",
"type": "integer"
}
]
}
],
"metadata": [
{
"name": "image_path",
"value": "../images/fish.jpg",
"type": "string"
},
{
"name": "index_in_list",
"value": "6",
"type": "integer"
}
]
}
}