move test output off ESP_LOG
This commit is contained in:
parent
90f7a567c4
commit
0c3eee52f0
2 changed files with 3 additions and 3 deletions
|
@ -95,7 +95,7 @@ static void uart_event_task(void *pvParameters) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handle_lora_receive(uint8_t *data, uint8_t size) {
|
static void handle_lora_receive(uint8_t *data, uint8_t size) {
|
||||||
ESP_LOGI(TAG, "msg: %s", data);
|
printf("msg: %s", data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void loop(void *p) {
|
void loop(void *p) {
|
||||||
|
|
|
@ -145,10 +145,10 @@ async.series([
|
||||||
|
|
||||||
buf += chunk.toString();
|
buf += chunk.toString();
|
||||||
|
|
||||||
if(buf.indexOf(`LORA32: msg: ${message}`) !== -1) {
|
if(buf.indexOf(`msg: ${message}`) !== -1) {
|
||||||
ports.dev1.removeListener("data", onData);
|
ports.dev1.removeListener("data", onData);
|
||||||
|
|
||||||
t.ok("got round-trip message!");
|
t.pass("got round-trip message!");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue