feat(i18n): zh-CN examples log in English, matching the serial-monitor convention
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2b73b57ee6
commit
4e99dd3a87
12 files changed
+28
-28
No files matched your search
@@ -30,7 +30,7 @@ static const uint8_t broadcast_mac[ESP_NOW_ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
/* 发送数据包时执行的回调 */
|
||||
static void on_data_sent(const uint8_t *mac_addr, esp_now_send_status_t status)
|
||||
{
|
||||
ESP_LOGI(TAG, "Envio concluído: %s", status == ESP_NOW_SEND_SUCCESS ? "SUCESSO (ACK)" : "FALHA");
|
||||
ESP_LOGI(TAG, "Send complete: %s", status == ESP_NOW_SEND_SUCCESS ? "SUCCESS (ACK)" : "FAILURE");
|
||||
}
|
||||
|
||||
/* 接收其他 ESP32 数据包时执行的回调 */
|
||||
@@ -70,7 +70,7 @@ void app_main(void)
|
||||
memcpy(peer_info.peer_addr, broadcast_mac, ESP_NOW_ETH_ALEN);
|
||||
ESP_ERROR_CHECK(esp_now_add_peer(&peer_info));
|
||||
|
||||
ESP_LOGI(TAG, "ESP-NOW pronto! Enviando telemetria a cada 3 segundos...");
|
||||
ESP_LOGI(TAG, "ESP-NOW ready! Sending telemetry every 3 seconds...");
|
||||
|
||||
dados_pacote_t telemetria = {
|
||||
.sensor_id = 101,
|
||||
@@ -84,7 +84,7 @@ void app_main(void)
|
||||
|
||||
esp_err_t res = esp_now_send(broadcast_mac, (uint8_t *)&telemetria, sizeof(telemetria));
|
||||
if (res != ESP_OK) {
|
||||
ESP_LOGE(TAG, "Erro ao disparar envio ESP-NOW: %d", res);
|
||||
ESP_LOGE(TAG, "Failed to send ESP-NOW packet: %d", res);
|
||||
}
|
||||
|
||||
vTaskDelay(pdMS_TO_TICKS(3000));
|
||||
|
||||
Reference in new issue
Block a user