-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from Quency-D/master
add heltec_capsule_sensor_v3 board
- Loading branch information
Showing
15 changed files
with
894 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
libraries/HeltecExample/examples/DriverTest/UdpLog/UdpLog.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "Arduino.h" | ||
#include "esp_network_log.h" | ||
const char* ssid = "TP-LINK_666"; | ||
const char* password = "heltec_test"; | ||
#define TAG "UdpLOG" | ||
|
||
int i = 0; | ||
char buf_read[128]; | ||
|
||
void setup() { | ||
Serial.begin(115200); | ||
esp_network_log.init(ssid,password,(esp_network_log_level_t)NLOG_LOCAL_LEVEL,true); | ||
} | ||
void loop() { | ||
printf("NLOG_LOCAL_LEVEL =%d\r\n",NLOG_LOCAL_LEVEL); | ||
ESP_NLOGI(TAG,"ESP32 Chip model Rev %d\n", i++); | ||
ESP_NLOGW(TAG,"ESP32 Chip model Rev %d\n", i++); | ||
ESP_NLOGE(TAG,"ESP32 Chip model Rev %d\n", i++); | ||
|
||
if(esp_network_log.available()) | ||
{ | ||
int len = esp_network_log.read(buf_read,128); | ||
buf_read[len] = '\0'; | ||
ESP_NLOGW(TAG,"%s \r\n", buf_read); | ||
} | ||
delay(1000); | ||
} |
Oops, something went wrong.