Commit Graph

12 Commits (9dfc6f970cf3e9dd3171861a656eaa74d611a6cf)

Author SHA1 Message Date
Tero Heinonen 9dfc6f970c Support for setting source address to socket (#40)
When receiving data, destination (own) address is stored and given to
socket when sending reply to make sure respone comes always from same
address where request was sent. This commit supports only real socket to
real socket messages, not virtual socket, or DTLS handshake messages.
2016-10-24 11:58:53 +03:00
Tero Heinonen 9c88fcd984 Delete transactions that are not supposed to get reply (#37)
* Delete transactions that are not supposed to get reply

When sending non-confirmable request that is not supposed to get reply,
it must be deleted after sending.

Also some general code-cleaning included.

* Remove outdated transactions from queue

If transaction does not get response, it will be deleted from queue.
2016-10-18 11:55:54 +03:00
Tero Heinonen 0e4af1a4d2 Send 4.04 if URI is not found (#34)
If coap service library receives confirmable request to URI that is not
registered, it must send response COAP_MSG_CODE_RESPONSE_NOT_FOUND.
2016-10-04 09:42:29 +03:00
Antti Kauppila 73d5163e4e New CoAP changes updated to this library
Unittests updated also
2016-09-08 18:13:26 +03:00
Arto Kinnunen ae0579f173 Update content_type to sn_coap_content_format_e (#27)
-Update content_type to be sn_coap_content_format_e instead of uint8_t
 to avoid type conversion (bugs).
-Fix compiler warnings
2016-06-28 10:45:30 +03:00
Mika Tervonen f903edb347 Check validity of transaction pointer when sending data 2016-06-16 14:46:47 +03:00
Tero Heinonen 2be763fa66 Modified coap response callback, added parameters (#23)
* Modified coap response callback, added parameters
for source address and source port.

* version v4.0.0
2016-06-08 09:58:33 +03:00
Mika Tervonen 120293c03b Remove Nanostack dependency from service api 2016-01-29 00:08:36 -08:00
Seppo Takalo c330fa884c Update copyright headers. 2016-01-14 11:00:29 +02:00
Tero Heinonen 685e08d7d5 Warnings cleaned. 2016-01-12 09:59:15 +02:00
Antti Kauppila b95d5be080 Merged token handling + updated unit tests 2015-12-21 11:56:04 +02:00
Antti Kauppila eb5aa4ef59 New CoAP service + unit tests 2015-12-21 10:00:43 +02:00