CommandFusion Wiki

Documentation Resources

User Tools

Site Tools


hardware:cflink:solo-cflink-protocol

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

hardware:cflink:solo-cflink-protocol [2017/09/13 23:11]
jarrod
hardware:cflink:solo-cflink-protocol [2017/09/13 23:20] (current)
jarrod
Line 247: Line 247:
 === Data === === Data ===
  
-The ''​VARLST''​ query does not have any associated data. 
 <sxh cflink; light: true> <sxh cflink; light: true>
 > [F2]<​ID>​[F3]QVARGET[F4]<​VAR_NAME>​[F5][F5] > [F2]<​ID>​[F3]QVARGET[F4]<​VAR_NAME>​[F5][F5]
Line 490: Line 489:
 // Reply // Reply
 < [F2][03][F3]RSOLRUN[F4]Good Night[F5][F5] < [F2][03][F3]RSOLRUN[F4]Good Night[F5][F5]
 +</​sxh>​
 +
 +==== VARSET - Set Variable Value ====
 +
 +Set the current value of a variable stored on the device. If no variable is already defined using the given variable name, a new variable will be created. A max of 50 variables can be stored on the device.
 +
 +=== Data ===
 +
 +<sxh cflink; light: true>
 +> [F2]<​ID>​[F3]CVARSET[F4]<​VAR_NAME>:<​VALUE>​[F5][F5]
 +</​sxh>​
 +  * **<​VAR_NAME>​** = The name of the variable to set the value of. Must be 10 characters or less. Cannot contain colons '':''​.
 +  * **<​VALUE>​** = The value to assign to the variable. Must be 20 characters or less.
 +
 +=== Reply ===
 +<sxh cflink; light: true>
 +< [F2]<​ID>​[F3]RVARSET[F4]<​VAR_NAME>:<​VALUE>​[F5][F5]
 +</​sxh>​
 +
 +  * **<​VAR_NAME>​** = The name of the variable being assigned a new value.
 +  * **<​VALUE>​** = The value of the variable that was just assigned.
 +
 +=== Example ===
 +<sxh cflink; light: true>
 +// Set the value of variable named '​room_state'​ to '​off'​ from Solo on CFLink ID [03]
 +> [F2][03][F3]CVARSET[F4]room_state:​off[F5][F5]
 +// Reply
 +< [F2][03][F3]RVARSET[F4]room_state:​off[F5][F5]
 </​sxh>​ </​sxh>​
  
hardware/cflink/solo-cflink-protocol.txt ยท Last modified: 2017/09/13 23:20 by jarrod