SENSBLUE ATLAS/Datasheet: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 672: | Line 672: | ||
} | } | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
===== 25.1.2 Get all relays state ===== | |||
Req-Topic: relayOutputs/runtime/in<syntaxhighlight lang="json"> | |||
{ | |||
"id": "<TIMESTAMP>", | |||
"origin": "APP", | |||
"task": { | |||
"action": "READ" | |||
} | |||
} | |||
</syntaxhighlight>Reply-Topic: relayOutputs/runtime/out <syntaxhighlight lang="json"> | |||
{ | |||
"id": "<TIMESTAMP>", | |||
"origin": "APP", | |||
"task": { | |||
"taskResult": { | |||
"D01": { | |||
"success": true, | |||
"state": "open" | |||
}, | |||
"D02": { | |||
"success": true, | |||
"state": "close" | |||
} | |||
} | |||
} | |||
} | |||
</syntaxhighlight> | |||
===== 25.1.3 Set all relays state ===== | |||
Req-Topic: relayOutputs/runtime/in<syntaxhighlight lang="json"> | |||
{ | |||
"id": "<TIMESTAMP>", | |||
"origin": "APP", | |||
"task": { | |||
"action": "SET", | |||
"taskParams": { | |||
"D01": { | |||
"state": "open" | |||
}, | |||
"D02": { | |||
"state": "close" | |||
} | |||
} | |||
} | |||
} | |||
</syntaxhighlight>Reply-Topic: relayOutputs/runtime/out<syntaxhighlight lang="json"> | |||
{ | |||
"id": "<TIMESTAMP>", | |||
"origin": "APP", | |||
"task": { | |||
"taskResult": { | |||
"D01": { | |||
"success": true, | |||
"state": "open" | |||
}, | |||
"D02": { | |||
"success": true, | |||
"state": "close" | |||
} | |||
} | |||
} | |||
} | |||
</syntaxhighlight> | |||
=== 26. RTC Actor === | |||
==== 26.1 App Interfacing ==== | |||
User App interface and functionalities exposed to the open part of the MQTT broker. Simplified interface to configure and obtain peripherals data. Connecting to the broker for this Area requires no credencials. | |||
===== 26.1.1 Set timer/alarm interruption ===== | |||
'''mode:''' Timer, alarm or none | |||
'''alarmSet:''' Date and time for alarm interruption (No effect if mode is timer or none) | |||
'''timerSetSeconds:''' Period in seconds for timer interruption (No effect if mode is alarm or none) | |||
Req-Topic: clock/config/in<syntaxhighlight lang="json"> | |||
{ | |||
"id": "<TIMESTAMP>", | |||
"origin": "APP", | |||
"task": { | |||
"taskParams": { | |||
"CLOCK_SET_MODE": { | |||
"mode": "timer", | |||
"alarmSet": "[timestamp epoch ms]", | |||
"timerSetSeconds": "<INT>" | |||
} | |||
} | |||
} | |||
} | |||
</syntaxhighlight> | |||