-
Notifications
You must be signed in to change notification settings - Fork 2.1k
gcoap: API revamp - Abstracting nanocoap #16855
Copy link
Copy link
Closed
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
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
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:
This issue serves as a tracking issue towards this goal and how I imagine the road forward there:
gcoap-based getter/setter functions fornanocoapdata types.nanocoapdata types getter/setter functions.nanocoapdata typesnanocoapdata types to newgcoaptypes that inherit from the originalnanocoaptypes. In an in-between step this will most likely require a lot of casting, since thegcoapfunctions, for now, should keep their (nanocoap-based) parameter types.gcoapfunctions and types that use the newgcoaptypes, provide wrappers for oldnanocoap-types-based functions and types.nanocoap-types-based wrappers