Make(...) command
This command used to control local state of anyRemote
Format description
Make(exit|flush|disconnect|mode|none|remote|var[,....])
Several examples:
0=Make(flush) 1=Make(disconnect) 2=Make(mode,mode_2) 3=Make(remote,on) 4=Make(var,my_var,date)
Make(flush)
This command used to flush all configuration information.
0=Make(flush)
It is guarantied what current command sequence will be executed till the end. This means what in the following command sequence both commands will be executed:
0=Make(flush);Set(title,all data flushed);
The typical use-case for Make(flush) is the following:
0=Make(flush);Include(/path/to/another/configurational/file);
Make(disconnect)
This command used to close connection to the device. In server mode after 5 seconds anyRemote will be able to receive incoming connection. In AT mode anyRemote will try to reconnect to the pnone after timeout specified by RetrySecs parameter (default value is 1 minute).
1=Make(disconnect)
Make(exit)
This command used to stop anyRemote and exit. It is a synonym to the "Exit" command.
#=Make(exit)
Make(mode,...)
Change current mode (group of key-to-command mapping) (do not mix this with AT/Server mode !).
As a side effect (ExitMode) and (EnterMode) "events" can be executed.
Format:
Make(mode,_mode_name_)
2=Make(mode,_new_mode_)
Make(remote,...)
Format:
Make(remote,on|off)
Switch on/off command processing without disconnection from the phone.
2=Exec(amixer -c 0 sset Master,0 mute);Make(remote,off)
Take a look to the order of commands above. Make(remote,off) command is the last one. If You change order to
2=Make(remote,off);Exec(amixer -c 0 sset Master,0 mute)
then Exec(amixer -c 0 sset Master,0 mute) will not be executed because "remote control" functionality will be switched off before it.
Make(var,...)
Format:
Make(var,_var_name_,_command_to_execute_) Make(var,_var_name_,by_value,_value_)
Sets internal variable. To access to the previously set internal variable use $(_var_name_) syntax.
2=Make(mode,my_var1,echo "Hello") 3=Make(mode,my_var2,by_value,world!) 4=Exec(echo "Value is: $(my_var1) $(my_var2))
Note: There are collision of $(_var_name_) syntax and shell command substitution syntax $(...). So, do not call Your internal variables with names which can be treated as shell commands.
Make(none)
Dummy command, does nothing.
0=Make(none)