📜  Rainmaker中同时打开和关闭不同设备-C编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:39.695000             🧑  作者: Mango

代码示例1
{
  "requestId": "6894439706274654516",
  "inputs": [
    {
      "intent": "action.devices.EXECUTE",
      "payload": {
        "commands": [
          {
            "devices": [
              {
                "id": "123",
                "customData": {
                  "deviceName": "action.devices.types.OUTLET"
                }
              },
              {
                "id": "456",
                "customData": {
                  "deviceName": "action.devices.types.OUTLET"
                }
              },
              {
                "id": "789",
                "customData": {
                  "deviceName": "action.devices.types.SWITCH"
                }
              }
            ],
            "execution": [
              {
                "command": "action.devices.commands.OnOff",
                "params": {
                  "on": true
                }
              },
              {
                "command": "action.devices.commands.OnOff",
                "params": {
                  "on": false
                }
              }
            ]
          }
        ]
      }
    }
  ]
}