Skip to content

Commit 5a47813

Browse files
proffalkenCopilot
andauthored
Bug/blocking calls (#12)
* Attempt to run as unblocking across multiple devices fixes #8 * Move sending of telemetry to second core if it exists * Update include/OtelSender.h Co-authored-by: Copilot <[email protected]> * Update src/OtelSender.cpp Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 12e6a2f commit 5a47813

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

include/OtelSender.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include <Arduino.h>
33
#include <ArduinoJson.h>
44
#include <atomic>
5-
65
// Optional compile-time on/off switch for all network sends.
76
// You can set -DOTEL_SEND_ENABLE=0 in platformio.ini for latency tests.
87
#ifndef OTEL_SEND_ENABLE
@@ -17,9 +16,6 @@
1716
#define OTEL_WORKER_SLEEP_MS 0
1817
#endif
1918

20-
#ifndef OTEL_QUEUE_CAPACITY
21-
#define OTEL_QUEUE_CAPACITY 128
22-
#endif
2319
// Base URL of your OTLP/HTTP collector (no trailing slash), e.g. "http://192.168.8.50:4318"
2420
// You can override this via build_flags: -DOTEL_COLLECTOR_BASE_URL="\"http://…:4318\""
2521
#ifndef OTEL_COLLECTOR_BASE_URL

src/OtelSender.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void OTelSender::workerLoop_() {
109109
#if defined(HTTPCLIENT_1_2_COMPATIBLE) || defined(ESP8266) || defined(ESP32)
110110
http.setReuse(true);
111111
#endif
112-
if (httpBeginCompat(http,fullUrl_(it.path))) {
112+
if (httpBeginCompat(http, fullUrl_(it.path))) {
113113
http.addHeader("Content-Type", "application/json");
114114
(void)http.POST(it.payload);
115115
http.end();

0 commit comments

Comments
 (0)