Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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");
