Commit Graph

63 Commits

Author SHA1 Message Date
firmwareguru 2879492799 fix mqtt string lengths greater than 255 and incorrect example keep-alive 2019-02-22 07:46:48 -07:00
Simon Duquennoy a2b7b996e4
Merge branch 'develop' into contrib/uip-cleanup 2018-10-29 10:18:10 +01:00
Atis Elsts 9faa834f57 Allow the user to configure COAP_CONF_OBSERVE_REFRESH_INTERVAL and allow it to be zero 2018-10-19 13:15:43 +01:00
Simon Duquennoy ff825daaea Merge remote-tracking branch 'origin/develop' into wip/uip6-cleanup 2018-10-18 20:28:00 +02:00
Simon Duquennoy ea32ab0f12 Removed UIP_LLH_LEN 2018-10-18 20:26:12 +02:00
Simon Duquennoy 59852d33f2 Use global uip.h buffer definitions in a number of other modules 2018-10-17 16:20:34 +02:00
Simon Duquennoy caa02ae51e Define UIP_IP_BUF globally in uip.h 2018-10-17 11:18:32 +02:00
Simon Duquennoy b56ff259dc uIP: remove leftover IPv4 code 2018-10-17 11:18:20 +02:00
Simon Duquennoy bcebd3afcf MQTT parse_publish_vhdr: added missing check of topic length 2018-10-15 14:27:35 +02:00
Simon Duquennoy 3b5369cf2a MQTT parse_publish_vhdr: added missing initialization of topic_pos 2018-10-15 14:11:59 +02:00
Edvard Pettersen 7b221dd09f Added missing standard header 2018-08-31 11:05:32 +02:00
Sam Kumar 02dd484ff2 Fix bug in CoAP retransmission policy 2018-08-25 22:15:45 -07:00
Joakim Eriksson 351908a1ba
Merge branch 'develop' into fix/coap-endpoint-is-reachable 2018-08-10 21:46:29 +02:00
carlosgp143@gmail.com 2db8fa80e2 Unified coap_request_state and added status for extra information 2018-06-29 09:33:18 +02:00
Niclas Finne f873fa25bf coap: bug fix when parsing secure CoAP endpoint with a specified port.
Thanks to Carlos Gonzalo Peces for reporting the issue.
2018-05-29 14:15:05 +02:00
Joakim Eriksson fd4d398f95
Merge branch 'develop' into contrib/lwm2m-queue-mode 2018-05-25 14:49:39 +02:00
carlosgp143@gmail.com b50d143966 Added doxygen annotation to the prototype 2018-05-24 08:56:03 +02:00
carlosgp143@gmail.com 262cea11f1 Implemented instant feedback in CoAp_send_request 2018-05-24 08:54:28 +02:00
carlosgp143@gmail.com d744e8306a Added Queue Mode implementation in LwM2M 2018-05-18 18:39:33 +02:00
Simon Duquennoy a0d7f1d041 CoAP: enable reaching link-local endpoints regardless of routing reachability 2018-05-12 12:18:22 -07:00
George Oikonomou b45d284be2 Merge branch 'release-4.1' into develop 2018-05-09 22:18:01 +01:00
Niclas Finne f6330996f7 dtls: shorter log module name for aligned log output 2018-05-04 11:11:17 +02:00
Niclas Finne 5c4fad921e coap: shorter log module names for aligned log output 2018-05-04 11:02:37 +02:00
Simon Duquennoy f9a1f958e1 Merge remote-tracking branch 'origin/release-4.1' into develop 2018-04-20 08:37:14 -07:00
Simon Duquennoy 5e753f73d0
Merge branch 'release-4.1' into contrib/coap-block2-offset 2018-04-13 16:52:25 +02:00
Simon Duquennoy 02b96f7474 Remove warning in case coap_engine_init is called twice 2018-04-13 06:51:33 -07:00
Simon Duquennoy 7a96a8f8a9 CoAP: auto-initialize module 2018-04-13 06:51:33 -07:00
Simon Duquennoy cc37c1a558 CoAP: enable calling coap_get_payload with a NULL pointer 2018-04-13 06:51:33 -07:00
Simon Duquennoy 6022585ad0
Merge branch 'release-4.1' into fix/coap_get_payload 2018-04-13 14:39:39 +02:00
Simon Duquennoy 0df3c4fb90 CoAP: enable calling coap_get_payload with a NULL pointer 2018-04-13 05:37:10 -07:00
Niclas Finne 24e24b8edc coap: added check for block offset overflow in block2 requests.
The block offset is stored in a signed variable in calls to CoAP handlers and
too large block offsets will overflow into negative values.

Thanks to Bruno Melo for reporting this issue.
2018-04-13 14:18:21 +02:00
Simon Duquennoy 9dfcb2ebb6 Various logging improvements 2018-04-05 20:47:02 +02:00
Johan Liseborn 512d648319
Merge branch 'develop' into fix_observer 2018-03-20 10:32:09 +01:00
Simon Duquennoy 80c9f9ea1f http-socket.h: include cc.h instead of re-defining MAX 2018-03-02 08:11:22 -08:00
Simon Duquennoy 9596a4285e Use PRI macros for safe printf and logs 2018-02-23 10:58:45 -08:00
Johan Liseborn 9aaba942e1 Handle block-wise transfer in observer notifications 2018-02-23 09:41:30 +01:00
Johan Liseborn 22e131bc6d Remove unused list of periodic services
The coap_resource_periodic_services list is no longer used, but it still
breaks the the observer functionality, so it should be removed.
2018-02-23 09:36:35 +01:00
Niclas Finne a18aaa4e26 Show compile information about tinyDTLS license only once. 2018-01-19 06:49:53 +01:00
Niclas Finne 833da8df76 Added compile information about license when including tinyDTLS in build 2018-01-17 20:03:28 +01:00
Niclas Finne 6562b78c6c Updated DTLS support for new logging system 2018-01-17 20:02:40 +01:00
Niclas Finne e746b024f0 CoAP: fixed typo in Doxygen comment 2018-01-12 18:57:14 +01:00
Niclas Finne ee65ba289e lwm2m: moved LWM2M object resource IDs to each object header file.
Added Doxygen groups in CoAP and LWM2M.
2018-01-12 01:25:27 +01:00
Niclas Finne 2d31c06a1e CoAP: renamed OPTION_MAP_SIZE to COAP_OPTION_MAP_SIZE for consistency 2018-01-12 01:20:53 +01:00
Niclas Finne e37dd179d1 CoAP: added missing UIP_LLH_LEN in buffer size check as described by
Laurent Deru in #242.
2018-01-12 01:20:53 +01:00
Niclas Finne ffffb0a9ad Fixed compiler warning in CoAP logging 2018-01-12 01:20:53 +01:00
Niclas Finne 4c56184a9b Updated CoAP to use the logging module 2018-01-12 01:20:53 +01:00
Joakim Eriksson 6c729f50d6 added lwm2m-ipso test 2018-01-12 01:20:53 +01:00
Joakim Eriksson c86b763e5d renamed coap packet to coap message - for naming closer to RFC 2018-01-12 01:20:53 +01:00
Niclas Finne a866fcbfad CoAP: replaced coap_send_message() with coap_sendto() that returns
number of bytes sent or error.
2018-01-12 01:20:52 +01:00
Niclas Finne 074391fa7d CoAP: Various updates in coap-uip transport implementation
* Mark endpoint as secure regardless if DTLS peer exists or not
* Drop CoAP transmissions to endpoints that are not connected
* Debug output cleanup
2018-01-12 01:20:52 +01:00