X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee.git;a=blobdiff_plain;f=commands.c;fp=commands.c;h=1489cb586e9159594fe38b9a9dd6d031f91a1013;hp=be8e03c929fe5a7574370a2eeccb9867c700e902;hb=9fdf7fa123e328a13ade691f4b724a187ee39a85;hpb=4ab039aeff9e145ff6f55d9fdcf74e911357e268 diff --git a/commands.c b/commands.c index be8e03c..1489cb5 100644 --- a/commands.c +++ b/commands.c @@ -88,7 +88,7 @@ static void monitor_cb(int s, short event, void *arg) if (monitor_current == NULL) monitor_current = LIST_FIRST(&monitor_list); - xbeeapp_send_atcmd(monitor_current->atcmd, NULL, 0, 0); + xbeeapp_send_atcmd(monitor_current->atcmd, NULL, 0, 0, NULL, NULL); monitor_current = LIST_NEXT(monitor_current, next); evtimer_set(&monitor_event, monitor_cb, cl); @@ -114,7 +114,7 @@ static void range_cb(int s, short event, void *arg) } range_power = ((range_power + i) & 0x7); - xbeeapp_send_atcmd("PL", &range_power, sizeof(range_power), 0); + xbeeapp_send_atcmd("PL", &range_power, sizeof(range_power), 0, NULL, NULL); snprintf(buf, sizeof(buf), "range%d", range_power); xbeeapp_send_msg(range_dstaddr, buf, strlen(buf), 0); @@ -790,7 +790,7 @@ struct cmd_ping_result { /* function called when cmd_ping is parsed successfully */ static void cmd_ping_parsed(void *parsed_result, struct cmdline *cl, void *data) { - xbeeapp_send_atcmd("VL", NULL, 0, 1); + xbeeapp_send_atcmd("VL", NULL, 0, 1, NULL, NULL); } cmdline_parse_token_string_t cmd_ping_ping = @@ -980,7 +980,7 @@ static void cmd_read_parsed(void *parsed_result, struct cmdline *cl, void *data) { struct cmd_read_result *res = parsed_result; - xbeeapp_send_atcmd(res->cmd->name, NULL, 0, 1); + xbeeapp_send_atcmd(res->cmd->name, NULL, 0, 1, NULL, NULL); } cmdline_parse_token_string_t cmd_read_read = @@ -1044,7 +1044,7 @@ static void cmd_write_parsed(void *parsed_result, struct cmdline *cl, printf("Unknown argument type\n"); return; } - xbeeapp_send_atcmd(res->cmd->name, param, len, 1); + xbeeapp_send_atcmd(res->cmd->name, param, len, 1, NULL, NULL); } cmdline_parse_token_string_t cmd_write_write =