示教机械臂
Dependencies: MQTT SDFileSystem WIZnet_Library mbed
Fork of wmx_laser_copy by
Diff: mainwmx.cpp
- Revision:
- 14:350e03215b0e
- Parent:
- 13:56063ceac462
--- a/mainwmx.cpp Thu Aug 02 07:34:41 2018 +0000 +++ b/mainwmx.cpp Fri Aug 03 10:06:33 2018 +0000 @@ -359,7 +359,7 @@ void on_control_cmd(const char* actuator_name, const char* control_value) { - if (strcmp(actuator_name, "create") == 0) + if (strcmp(actuator_name, "command") == 0) { int the_command = atoi(control_value); // @@ -403,7 +403,7 @@ //声明所有的执行器,每行一个,每个由名字、参数类型两部分组成,最后一行必须为空指针作为结尾 const char* actuators[][2] = { - "create", "", + "command", "", NULL, NULL //最后一行以空指针作为结束标记 }; pc.printf("connecting...\r\n");