For example, send:
/send id cmd
The real thingid
It can be done by:
/list 查看运行的实盘
/listall 查看所有的实盘
I'm not sure what you mean.
Testing/send id cmd
The real-time strategy code for the instruction:
function main() {
while(true){
// 处理交互
var cmd = GetCommand()
if(cmd){
Log("cmd:", cmd) // 测试
}
Sleep(2000)
}
}
Interactive interface settings
Use/send id cmd
Instructions, the hard drive log shows:
You can see that the hard drive has received the message.UpdateAmount:1
The interactive commands.
重启/停止
The real thing/start id
Start the specified disk:/stop id
Stop specified disk:id
The real thing/list id
View the specified disk:Difficult to quantifySending interactions to instances /send id to cmd Is the cmd here the content of a command that can be customized arbitrarily? For example, the UpdateAmount in the example, is a built-in function of the inventor platform, or is it a variable or function that is customized by some policy code? What exactly does the robot do after receiving this cmd interaction command? I've just combined the examples in the API documentation to understand, understood. Example: Design interactive code in a strategy I've been trying to get a copy of this.
bamsmenIs it possible to monitor the status of the host, for example, to receive an instant notification on WeChat when the server is down?
fmz4cryptoIt's a dream come true!
fmzeroIt's fried!
Inventors quantify - small dreamsIn addition to the above, the website also offers online alerts, e-mail alerts and WeChat notifications.