mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-31 23:15:48 +03:00
RIOT: Update PKG_URL and PKG_VERSION to latest 4.3.2rc2 code
This commit is contained in:
1 parent
f176bf3c53
commit
5a9a6cc2c2
3 files changed
+9
-7
No files matched your search
@@ -12,7 +12,7 @@ Preparing the logical interfaces:
|
||||
For the client:
|
||||
|
||||
PORT=tap0 make term
|
||||
coapc
|
||||
coapc coap://[ip6-address]/some/path
|
||||
|
||||
The IP address to connect to needs to be that as returned by libcoap_server,
|
||||
or that of the tap0 interface, etc.
|
||||
|
||||
@@ -129,9 +129,11 @@ client_coap_init(int argc, char **argv) {
|
||||
#define BUFSIZE 100
|
||||
unsigned char buf[BUFSIZE];
|
||||
int res;
|
||||
const char *coap_uri = COAP_CLIENT_URI;
|
||||
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
if (argc > 1) {
|
||||
coap_uri = argv[1];
|
||||
}
|
||||
|
||||
/* Initialize libcoap library */
|
||||
coap_startup();
|
||||
@@ -139,9 +141,9 @@ client_coap_init(int argc, char **argv) {
|
||||
coap_set_log_level(COAP_MAX_LOGGING_LEVEL);
|
||||
|
||||
/* Parse the URI */
|
||||
len = coap_split_uri((const unsigned char *)COAP_CLIENT_URI, strlen(COAP_CLIENT_URI), &uri);
|
||||
len = coap_split_uri((const unsigned char *)coap_uri, strlen(coap_uri), &uri);
|
||||
if (len != 0) {
|
||||
coap_log_warn("Failed to parse uri %s\n", COAP_CLIENT_URI);
|
||||
coap_log_warn("Failed to parse uri %s\n", coap_uri);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
PKG_NAME=libcoap
|
||||
PKG_URL=https://github.com/mrdeep1/libcoap
|
||||
PKG_VERSION=6769f9f893e9143d33782ce3602f947a8f2cf521
|
||||
PKG_URL=https://github.com/obgm/libcoap
|
||||
PKG_VERSION=f176bf3c534bc0478a62cb744de11068073ed67f
|
||||
PKG_LICENSE=BSD-2-Clause
|
||||
|
||||
LIBCOAP_BUILD_DIR=$(BINDIR)/pkg/$(PKG_NAME)
|
||||
|
||||
Reference in new issue
Block a user