eclipse-wakaama / wakaama

Eclipse Wakaama is a C implementation of the Open Mobile Alliance's LightWeight M2M protocol (LWM2M).
BSD 3-Clause "New" or "Revised" License
501 stars 374 forks source link

build wakaama with libcoap backend #352

Open ponyatov opened 6 years ago

ponyatov commented 6 years ago

Is it possible to strip out all COAP specific code from Wakaama sources to use external libcoap? Looking at the code I see COAP specific code all over the sources.

I'm going to use a tiny device with RT5350F (HLK-RM04, 8M/32M), and it will be good to have variants to use full LWM2M or minimal COAP client mode depending on the current task. RAM size is extra small, so sharing some part of code in common library will save some Kbytes of RAM for applications.

sbernard31 commented 3 years ago

Do you find a solution for this ? @sbertin-telular is it something we want to address ?

sbertin-telular commented 3 years ago

I see the value in being able to build with different CoAP libraries, but I think Wakaama is closely tied to the CoAP code right now. I think we should leave it open for future work.

sbernard31 commented 3 years ago

Maybe we change label to enhancement ? (or anything else you prefer)

sbertin-telular commented 3 years ago

I think enhancement is good. Go ahead and change it.

sbernard31 commented 3 years ago

(I just get that you still not have right to change label :disappointed:)