This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision |
| indigo_2025.2_documentation:api [2026/05/01 18:10] – [updateValue] davel17 | indigo_2025.2_documentation:api [2026/05/01 18:12] (current) – [variable command messages] davel17 |
|---|
| |
| === variable command messages === | === variable command messages === |
| The ''updateValue'' command is currently the only command message you can send to the variable feed. It closely mirrors the Python-based [[indigo_2025.2_documentation:object_model_reference|IOM command for updating variables]]. This was completely intentional to make learning one API a stepping stone to another. The HTTP API messages and the Websocket API messages are identical, and are very clearly a JSON-rendered version of the associated IOM command. | Variable commands closely mirror the Python-based [[indigo_2025.2_documentation:object_model_reference|IOM command for variable objects]]. This was completely intentional to make learning one API a stepping stone to another. The HTTP API messages and the Websocket API messages are identical, and are very clearly a JSON-rendered version of the associated IOM command. |
| |
| == create == | == create == |
| } | } |
| }</code> | }</code> |
| |
| ''objectId'' is the id of the variable. The ''value'' parameter is required and must be a string. Pass an empty string ("") to clear the variable value. | |
| |
| == indigo.variable.updateValue == | == indigo.variable.updateValue == |