Skip to main content
. 2021 Jun 22;7:e545. doi: 10.7717/peerj-cs.545
‘127.0.0.1’ The IP address of the computer running the master device representation being accessed, (likely to be different from localhost).
‘8000’ The port number for the Web Server, as declared by the value of the „WEBSERVICES_PORT‟ constant created back in Step One.
‘Light1’ ‘Dimmer1’ The names of the smart devices being accessed, as declared when their representations were created in Step Two.
‘about’ A command to display general information about the specified device.
‘get’ A command to return the name of each state variable supported by the specified device, along with its currently recorded value.
‘set?Power:1’ A command to set state variable „Power‟ to a value of „1‟.
Note: 0 = OFF, 1 = ON
‘get?Brightness’ A command to return the current value of state variable “Brightness”.
‘set?Brightness:75’ A command to set state variable “Brightness” to a value of “75”.