示教机械臂
Dependencies: MQTT SDFileSystem WIZnet_Library mbed
Fork of wmx_laser_copy by
Revision 14:350e03215b0e, committed 2018-08-03
- Comitter:
- xmwmx
- Date:
- Fri Aug 03 10:06:33 2018 +0000
- Parent:
- 13:56063ceac462
- Commit message:
- ??????????
Changed in this revision
mainwmx.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 56063ceac462 -r 350e03215b0e mainwmx.cpp --- 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");