Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/develop f10034d73 -> 5b4bdf644


oic; update comments in coap.h.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/5b4bdf64
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/5b4bdf64
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/5b4bdf64

Branch: refs/heads/develop
Commit: 5b4bdf644b588699a367b3e9fbe7b94d00701c65
Parents: f10034d
Author: Marko Kiiskila <[email protected]>
Authored: Fri Jan 6 16:36:11 2017 -0800
Committer: Marko Kiiskila <[email protected]>
Committed: Fri Jan 6 16:41:41 2017 -0800

----------------------------------------------------------------------
 net/oic/src/messaging/coap/coap.h | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/5b4bdf64/net/oic/src/messaging/coap/coap.h
----------------------------------------------------------------------
diff --git a/net/oic/src/messaging/coap/coap.h 
b/net/oic/src/messaging/coap/coap.h
index 11e7d8c..ec4c8f8 100644
--- a/net/oic/src/messaging/coap/coap.h
+++ b/net/oic/src/messaging/coap/coap.h
@@ -137,8 +137,8 @@ struct coap_packet_rx {
     uint16_t uri_port;
     uint16_t uri_path_len;
     uint16_t uri_path_off;
-    int32_t observe;
     uint16_t accept;
+    int32_t observe;
 #if 0
     uint8_t if_match_len;
     uint8_t if_match[COAP_ETAG_LEN];
@@ -161,12 +161,11 @@ struct coap_packet_rx {
     uint16_t payload_len;
 };
 
-/* parsed message struct */
+/*
+ * For CoAP TX, store pointers to user memory. All the TLVs need to be known
+ * before header construction can begin.
+ */
 typedef struct coap_packet {
-    /* pointer to CoAP header / incoming packet buffer / memory
-       to serialize packet */
-    uint8_t *buffer;
-
     uint8_t version;
     coap_message_type_t type;
     uint8_t code;

Reply via email to