forked from obgm/libcoap
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wojtek's changes #2
Open
franc0is
wants to merge
74
commits into
franc0is:fbo
Choose a base branch
from
sastrion:fbo-merge
base: fbo
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File net.h is present in both libcoap and st-node repository. To avoid name conflict, file in libcoap is moved to subdirectory libcoap/ . All #include statements are changed accordingly.
This commit contains temporary fix for name conflict between st-node logging.h and libcoap debug.h. To be reverted when better solution is agreed upon.
Original libcoap functions operate on array of chars. New functions use mbuf_write.
This function uses mbuf supplied by net_receive to create a coap_pdu_t structure. It is based on LWIP port, but with significant change - LWIP stores coap_pdu_t structure inside mbuf (which seems to be pointless).
Function coap_read is modified to work with mbuf instead of array of chars. There is a possible problem with net_receive function - it is a blocking function, and it might cause errors with retransmissions.
This commit is an intermediate step towards replacement of libcoap log and debug system with st-node's.
Change necessary because of non-standard network handling of st-node.
Bug existed for messages with empty token.
Modify coap_new_context, coap_read and coap_send to work with new st-node network functions: - net_create - net_send_to - net_recv_from
Allows to create servers.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.