Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcoap with Contiki OS #143

Open
MarCast opened this issue Feb 14, 2018 · 4 comments
Open

libcoap with Contiki OS #143

MarCast opened this issue Feb 14, 2018 · 4 comments

Comments

@MarCast
Copy link

MarCast commented Feb 14, 2018

Hi men, I have a problem with libcoap on my Contiki OS 3.0.
My goal is to forward the values of my device to a cloud via the Coap protocol. That's why I'm using LibCoap. My Contiki is 3.0 and I followed the installation on the main site by following these steps:

  1. Download of the git

  2. Copy the folder in the APPS of contiki

  3. Make ./autogen.sh

  4. Make ./configure --with-contiki
     
    At step 4 I get an error of a2x that is not there and then I disabled it and I redid the command

  5. Make ./configure --with-contiki --disable-a2x

Now I tried to give an example, adding to the Makefile APPS + = libcoap, but going to compile tells me that there are no declared libraries. Because? I hope you can give me a hand!

@obgm
Copy link
Owner

obgm commented Feb 15, 2018

The major problem is that step 4 and step 5 fail:

$ ./configure --with-contiki --disable-a2x |& head -1
configure: WARNING: unrecognized options: --with-contiki, --disable-a2x

After cloning the libcoap master branch, you can check out the Makefile.contiki and coap_config.h (which points to coap_config.h.contiki in the top directory) in examples/contiki how to manually build with Contiki 3. The improved develop branch unfortunately does not support Contiki.

@MarCast
Copy link
Author

MarCast commented Feb 19, 2018

Then it's support Contiki 3? If it use the Contiki 2.7, I can't use this version for problem of my chip.

@MarCast
Copy link
Author

MarCast commented Feb 21, 2018

I implement the libcoap on Contiki Apps, but I have the error when adding the APPS += libcoap in Makefile on my example. When I compile the file, I see fatal error: arpa/inet.h no such file or directory.

@obgm
Copy link
Owner

obgm commented Feb 22, 2018

You need to make sure that your coap_config.h does not define HAVE_ARPA_INET_H if your toolchain does not have arpa/inet.h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants