arduino / arduino/ArduinoCore-samd

Udp.h included in ArduinoCore-samd and in ArduinoCore-API

Open
#679 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
502
Forks
740
PR merge metrics
No merged PRs in 30d

Description

Reference from ArduinoCore-API repo: https://github.com/arduino/ArduinoCore-API/issues/171

Udp.h is included in Core-samd and core-api, while one of them uses #pragma once and the other include guards. This causes problems when including both of them.

`error: redefinition of 'class arduino::UDP' `

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading ArduinoCore-API issue 171 and comparing Udp.h in ArduinoCore-samd with the ArduinoCore-API version. Reproduce the reported error by including both headers, then verify that the combined include no longer produces the arduino::UDP redefinition.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.