-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
Area: CoAPArea: Constrained Application Protocol implementationsArea: Constrained Application Protocol implementationsDiscussion: RFCThe issue/PR is used as a discussion starting point about the item of the issue/PRThe issue/PR is used as a discussion starting point about the item of the issue/PRType: cleanupThe issue proposes a clean-up / The PR cleans-up parts of the codebase / documentationThe issue proposes a clean-up / The PR cleans-up parts of the codebase / documentationType: trackingThe issue tracks and organizes the sub-tasks of a larger effortThe issue tracks and organizes the sub-tasks of a larger effort
Description
During the summit we discussed a general API overhaul for our CoAP infrastructure. While the overall goal is a complete redesign of the gCoAP API that would for now fork from the original gCoAP, there is also work to be done for good old gCoAP:
- Compatibly (with deprecations over release cycles) get rid of direct member access in nanocoap (using static inline accessors instead).
This issue serves as a tracking issue towards this goal and how I imagine the road forward there:
- Provide
gcoap
-based getter/setter functions fornanocoap
data types. - Replace direct access to members of those
nanocoap
data types getter/setter functions. - Deprecate direct assess to members of
nanocoap
data types - Move gcoap-specific members of
nanocoap
data types to newgcoap
types that inherit from the originalnanocoap
types. In an in-between step this will most likely require a lot of casting, since thegcoap
functions, for now, should keep their (nanocoap
-based) parameter types. - Provide new
gcoap
functions and types that use the newgcoap
types, provide wrappers for oldnanocoap
-types-based functions and types. - Deprecate
nanocoap
-types-based wrappers
JKRhb
Metadata
Metadata
Labels
Area: CoAPArea: Constrained Application Protocol implementationsArea: Constrained Application Protocol implementationsDiscussion: RFCThe issue/PR is used as a discussion starting point about the item of the issue/PRThe issue/PR is used as a discussion starting point about the item of the issue/PRType: cleanupThe issue proposes a clean-up / The PR cleans-up parts of the codebase / documentationThe issue proposes a clean-up / The PR cleans-up parts of the codebase / documentationType: trackingThe issue tracks and organizes the sub-tasks of a larger effortThe issue tracks and organizes the sub-tasks of a larger effort