mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 21:18:13 +08:00
去掉 udp send data success!
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -71,6 +71,10 @@ int application_start(void)
|
||||
int i;
|
||||
os_log("Start %s",VERSION);
|
||||
|
||||
uint8_t mac[32];
|
||||
mico_wlan_get_mac_address(mac);
|
||||
os_log("mac[%s]", mac);
|
||||
|
||||
//char main_num=0;
|
||||
OSStatus err = kNoErr;
|
||||
|
||||
|
||||
@@ -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);
|
||||
// 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);
|
||||
p_send_msg = NULL;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ set auto-load safe-path /
|
||||
|
||||
```shell
|
||||
mico make TC1@MK3031@moc debug
|
||||
(gdb) target remote localhost:3333
|
||||
(gdb) b SetLogRecord
|
||||
(gdb) commands 1
|
||||
> 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/>
|
||||
|
||||
|
||||
|
||||
```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
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user