Rest can be used to remote control the MatrixCOS and to read external values from other devices.
The rest enpoint can be used to remote control MatrixCOS.
Execute a simple CMD (like execute a programe) on the MatrixCOS via REST. (example with espName set to myesp)
e.g http://myesp.local/cmd/run+counter.cmd Will execute "run counter.cmd" on ESPNAME, which read the "counter.cmd" programm from filesystem and execute it.
e.g http://myesp.local/cmd/drawOff Will switch off the display and stop all programs
use command "rest" to read remote values
e.g. Read body via rest call $v rest http://myesp.local/cmd/stat => $v="AppInfo MatrixCOS V1.0.0 eeType:Os02 login:0 access_level:0" read stat of esp into attr $v $v extract eeType: " " $v => $v = "Os02"
For Basi-Auth calls use e.g. http://admin:pas@myesp.local/cmd/set
a OpenOn.org project - develop by michael@openon.org