Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Bug Report
description: File a bug report.
title: "[Bug]: "
labels: ["bug", "triage"]
projects: ["proffalken/3"]
assignees:
- proffalken
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: input
id: contact
attributes:
label: Contact Details
description: How can we get in touch with you if we need more info?
placeholder: ex. [email protected]
validations:
required: false
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
value: "A bug happened!"
validations:
required: true
- type: input
id: version
attributes:
label: Version
description: What version of the library are you running?
default: 1.0.1
validations:
required: true
- type: dropdown
id: hardware
attributes:
label: What hardware are you seeing the problem on?
multiple: true
options:
- ESP32
- ESP8266
- RP2040
- Something else
- type: input
id: other_hardware
attributes:
label: Other hardware
description: If you're using something other than the ones in the list above, please put it here
default: 1.0.1
validations:
required: false
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/proffalken/otel-embedded-cpp/blob/main/CODE_OF_CONDUCT).
options:
- label: I agree to follow this project's Code of Conduct
required: true

61 changes: 61 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Feature Request
description: Need something new added to the library? This is the form for you!
title: "[Feature]: "
labels: ["feature", "triage"]
projects: ["proffalken/3"]
assignees:
- proffalken
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to request a new feature!
- type: input
id: contact
attributes:
label: Contact Details
description: How can we get in touch with you if we need more info?
placeholder: ex. [email protected]
validations:
required: false
- type: textarea
id: what--do-you-want-to-see?
attributes:
label: What do you want to see?
description: What are we missing in our project?
placeholder: Tell us what you see!
value: "A new feature"
validations:
required: true
- type: dropdown
id: hardware
attributes:
label: What hardware are you using?
multiple: true
options:
- ESP32
- ESP8266
- RP2040
- Something else
- type: input
id: other_hardware
attributes:
label: Other hardware
description: If you're using something other than the ones in the list above, please put it here
validations:
required: false
- type: textarea
id: other info
attributes:
label: What else can you tell us to help us implement this?
description: Is there another project that does similar things? Do you have example code? Please post it here!
render: shell
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/proffalken/otel-embedded-cpp/blob/main/CODE_OF_CONDUCT).
options:
- label: I agree to follow this project's Code of Conduct
required: true

1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,19 @@ The example code shows how to do this with the `time` library and NTP.

```cpp
#include <Arduino.h>
#include <WiFi.h>
#include <time.h>

#if defined(ESP32)
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ARDUINO_ARCH_RP2040)
// Earle Philhower’s Arduino-Pico core exposes a WiFi.h for Pico W
#include <WiFi.h>
#else
#error "This example targets ESP32, ESP8266, or RP2040 (Pico W) with WiFi."
#endif

// ---------------------------------------------------------
// Import Open Telemetry Libraries
// ---------------------------------------------------------
Expand Down
13 changes: 12 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
#include <Arduino.h>
#include <WiFi.h>
#include <time.h>

// Include the appropriate WiFi library
#if defined(ESP32)
#include <WiFi.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#elif defined(ARDUINO_ARCH_RP2040)
// Earle Philhower’s Arduino-Pico core exposes a WiFi.h for Pico W
#include <WiFi.h>
#else
#error "This example targets ESP32, ESP8266, or RP2040 (Pico W) with WiFi."
#endif

// ---------------------------------------------------------
// Import Open Telemetry Libraries
// ---------------------------------------------------------
Expand Down