If we ask @jody.albritton, then we will might have an SDK for terminals as well, in Fortran.
No Fortran support yet, but we do have a cross platform CLI written in typescript.
Here are the downloads
Docs Here
I’ve got this installed and and am able to enumerate my devices and dump their status, but I can’t figure out how to send them commands (e.g., to turn a light on).
Could you please post documentation for (or an example of) the correct format for the JSON data for the devices:commands
command?
Look at this topic, you will find more details there:
The specific docs for executing commands with the CLI are here
The expected payload looks something like this
{
"commands": [
{
"component": "main",
"capability": "switchLevel",
"command": "setLevel",
"arguments": [
80
]
}
]
}
https://smartthings.developer.samsung.com/docs/api-ref/st-api.html#operation/executeDeviceCommands
Thank you very much. It was that last link with the actual documentation for the request body that had eluded me. Maybe the CLI documentation should prominently link to it as well?