去掉 udp send data success!

This commit is contained in:
zogodo
2020-01-10 08:54:39 +08:00
parent 0aa8f3bde2
commit 68ce42fc84
4 changed files with 31 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -71,6 +71,10 @@ int application_start(void)
int i; int i;
os_log("Start %s",VERSION); os_log("Start %s",VERSION);
uint8_t mac[32];
mico_wlan_get_mac_address(mac);
os_log("mac[%s]", mac);
//char main_num=0; //char main_num=0;
OSStatus err = kNoErr; OSStatus err = kNoErr;

View File

@@ -108,7 +108,7 @@ void udp_thread(void *arg)
err = udp_msg_send(udp_fd, (const unsigned char*)p_send_msg->data, p_send_msg->datalen); err = udp_msg_send(udp_fd, (const unsigned char*)p_send_msg->data, p_send_msg->datalen);
// require_noerr_string(err, MQTT_reconnect, "ERROR: udp publish data err"); // require_noerr_string(err, MQTT_reconnect, "ERROR: udp publish data err");
os_log("udp send data success! msg=[%ld].\r\n", p_send_msg->datalen); //os_log("udp send data success! msg=[%ld].\r\n", p_send_msg->datalen);
free(p_send_msg); free(p_send_msg);
p_send_msg = NULL; p_send_msg = NULL;
} }

View File

@@ -11,6 +11,7 @@ set auto-load safe-path /
```shell ```shell
mico make TC1@MK3031@moc debug mico make TC1@MK3031@moc debug
(gdb) target remote localhost:3333
(gdb) b SetLogRecord (gdb) b SetLogRecord
(gdb) commands 1 (gdb) commands 1
> silent > silent
@@ -24,3 +25,23 @@ mico make TC1@MK3031@moc debug
``` ```
参考: <https://www.tablix.org/~avian/blog/archives/2012/08/monitoring_serial_console_through_jtag/> 参考: <https://www.tablix.org/~avian/blog/archives/2012/08/monitoring_serial_console_through_jtag/>
```shell
mico make TC1@MK3031@moc debug
target remote localhost:3333
b SetLogRecord
commands 1
silent
p log
p \n
c
end
set height 0
c
```