chrysn
b9a8652e5a
examples/gcoap: Do display truncated messages, but with a warning
2021-09-02 16:49:46 +02:00
chrysn
e9736e925e
examples/gcoap: Don't assume success after exhausing known errors
2021-09-02 16:49:46 +02:00
Benjamin Valentin
ce10baff81
examples/gcoap: use use netutils_get_ipv6()
2021-07-20 22:44:39 +02:00
János Brodbeck
0a8eaea889
example/gcoap: add DTLS support
2021-07-07 14:45:30 +02:00
Cenk Gündoğan
c970cca422
examples: gcoap_cli: adjust for the request matcher handler
2020-10-28 15:40:35 +01:00
chrysn
f84d34f2be
Merge pull request #15281 from chrysn-pull-requests/cli-postput-payload-is-optional
...
examples/gcoap: Allow PUT/POST with empty payload
2020-10-23 15:21:43 +02:00
chrysn
2fe999fd8b
examples/gcoap: Allow PUT/POST with empty payload
...
All access to the respective position in argv is already checked against
the argc count, and the online usage documentation already declares the
argument as optional (where not accepting it at GET seems obvious
enough, but requiring it with POST or PUT does not). Thus, allowing it
in the argument count check is the only thing to remain.
2020-10-23 11:16:22 +02:00
Bas Stottelaar
bb36bbc6ff
examples/*: realign ENABLE_DEBUG
2020-10-23 01:26:09 +02:00
Ken Bannister
c267633d74
examples/gcoap: add ability to generate CoAP ping request
2020-04-17 08:15:20 -04:00
Ken Bannister
19ecbb0eba
examples/gcoap: fix statement formatting
2020-04-17 07:07:20 -04:00
Ken Bannister
937ffaf1e9
examples/gcoap: fix reference to variable out of scope
2020-04-17 07:05:13 -04:00
Cenk Gündoğan
7cda842a00
examples/gcoap: add handling of proxied requests
2020-03-28 14:50:51 +01:00
Leandro Lanzieri
bab6f4737c
net/gcoap: Move config macros to 'CONFIG_' namespace
...
Macros that changed:
GCOAP_MSG_QUEUE_SIZE -> CONFIG_GCOAP_MSG_QUEUE_SIZE
GCOAP_NO_AUTO_INIT -> CONFIG_GCOAP_NO_AUTO_INIT
GCOAP_NO_RETRANS_BACKOFF -> CONFIG_GCOAP_NO_RETRANS_BACKOFF
GCOAP_NON_TIMEOUT -> CONFIG_GCOAP_NON_TIMEOUT
GCOAP_OBS_CLIENTS_MAX -> CONFIG_GCOAP_OBS_CLIENTS_MAX
GCOAP_OBS_OPTIONS_BUF -> CONFIG_GCOAP_OBS_OPTIONS_BUF
GCOAP_OBS_REGISTRATIONS_MAX -> CONFIG_GCOAP_OBS_REGISTRATIONS_MAX
GCOAP_OBS_VALUE_WIDTH -> CONFIG_GCOAP_OBS_VALUE_WIDTH
GCOAP_PDU_BUF_SIZE -> CONFIG_GCOAP_PDU_BUF_SIZE
GCOAP_PORT -> CONFIG_GCOAP_PORT
GCOAP_RECV_TIMEOUT -> CONFIG_GCOAP_RECV_TIMEOUT
GCOAP_REQ_OPTIONS_BUF -> CONFIG_GCOAP_REQ_OPTIONS_BUF
GCOAP_REQ_WAITING_MAX -> CONFIG_GCOAP_REQ_WAITING_MAX
GCOAP_RESEND_BUFS_MAX -> CONFIG_GCOAP_RESEND_BUFS_MAX
GCOAP_RESP_OPTIONS_BUF -> CONFIG_GCOAP_RESP_OPTIONS_BUF
GCOAP_TOKENLEN -> CONFIG_GCOAP_TOKENLEN
2020-01-28 11:59:52 +01:00
Hauke Petersen
de777f7655
examples/gcoap: adapt to gcoap_send() API changes
2019-11-28 12:50:24 +01:00
Hauke Petersen
75397a2be1
examples/gcoap: adapt to resp_handler API change
2019-11-28 12:48:37 +01:00
Leandro Lanzieri
7d41fcc87d
examples/gcoap: Adapt to change in ipv6_addr_split_iface
2019-11-15 14:02:50 +01:00
Sebastian Meiling
ca696f827b
Merge pull request #12193 from leandrolanzieri/pr/gcoap/obs
...
gcoap: Add 'obs' attribute in example and extend documentation
2019-10-31 18:14:23 +01:00
benpicco
e942f86837
Merge pull request #11056 from kb2ma/coap/pkt_api_block_write
...
net/gcoap: add/use Packet API Block implementation
2019-09-24 21:43:33 +02:00
Ken Bannister
1f7fbb2239
examples/gcoap: handle block2 response
2019-09-24 14:03:50 -04:00
Leandro Lanzieri
1299158b01
examples/gcoap: Add 'obs' attribute to resource
2019-09-10 16:32:33 +02:00
Benjamin Valentin
d16afe5422
examples: make use of ARRAY_SIZE macro
2019-08-06 19:43:54 +02:00
Leandro Lanzieri
a9ab9d37e2
Merge pull request #11765 from kb2ma/coap/encode_resources
...
net/gcoap: add/publish link format attributes for a resource
2019-07-27 22:36:33 +02:00
Ken Bannister
39570b9df3
examples/gcoap: write link format parameters
2019-07-27 07:09:40 -04:00
Martine S. Lenders
f1495f839d
examples/gcoap: replace gcoap_req_send()
2019-07-03 15:01:50 +02:00
Ken Bannister
a8cbc19241
examples/gcoap: use coap_opt_finish()
2019-03-13 00:24:29 -04:00
Ken Bannister
f1b0827585
examples/gcoap: handle response buffer too small
2019-01-16 05:41:30 -05:00
Ken Bannister
8a1a2b41fb
examples/gcoap: handle request buffer too small
2019-01-16 05:38:13 -05:00
Rotzbua
cb5232a107
gcoap/example: add comment on resource order
...
according to nanocoap/example: fix resource order #9919
2019-01-08 23:14:58 +01:00
Ken Bannister
424a01ddc1
net/gcoap: remove gcoap attributes from coap_pkt_t
2018-11-24 07:09:25 -05:00
Ken Bannister
3f3df74bcd
Merge pull request #7237 from Ell-i/feature-gcoap-extra-indirection
...
net/gcoap: Make references to coap_resource_t all const in gcoap
2018-08-07 23:52:59 -04:00
pokgak
b9880cb800
examples/gcoap: fix post/put without port number
2018-08-06 11:03:55 +02:00
Pekka Nikander
33c84591e9
{examples,tests}/gcoap: Remove unnecessary type casts
2018-07-30 09:01:30 +03:00
c2fd0fb3c5
examples/gcoap: adapt to resource context ptr
2018-02-02 19:02:54 +01:00
Ken Bannister
a1efa03981
net/gcoap: Read interface from CLI in shell example
2017-12-10 09:50:36 -05:00
Ken Bannister
70be8cd5bb
net/gcoap: Update copyright for 2017
2017-11-10 06:54:38 -05:00
Ken Bannister
5435e0c7d3
net/gcoap: Add shell command option to send message confirmably
2017-11-10 06:54:38 -05:00
Ken Bannister
25f40df447
net/gcoap: Flatten command line handling to prepare for optional arguments
2017-11-10 06:54:38 -05:00
6e28e95c00
examples/gcoap: update README and add new handlers
2017-09-28 22:27:57 +02:00
Hauke Petersen
2290a9f69b
net/gcoap: added remote sock ep to resp handler cb
...
When receiving a response to a request send our earlier, it is in
some cases essential, to know something about who send the reponse.
This is needed for example when sending requests to multicast
addresses to be able to react to different incoming responses.
2017-07-31 11:11:06 +02:00
Ken Bannister
3abff6d140
gcoap: Update example for Observe, including documentation.
2017-05-23 17:55:04 -04:00
Hauke Petersen
ba5635889c
net/gcoap: make gcoap_op_state return count directly
2017-05-22 13:50:59 +02:00
3d48eee095
cleanup: apply remove_atoi_casts.cocci (coccinelle)
2017-05-13 12:39:48 +02:00
Ken Bannister
342c3f2ed3
gcoap: Remove coap.h include file, which is no longer used.
...
Also change references in dependencies to the net/gcoap.h include.
2017-01-20 22:00:25 -05:00
Ken Bannister
e10e579593
gcoap: Update CLI example for rebase on sock
2017-01-20 22:00:25 -05:00
Ken Bannister
1783c9c672
gcoap: CLI example
2016-10-31 22:41:52 -04:00