Azeem Lodhi
Azeem Lodhi

Reputation: 53

How to use socket.h c header file in contiki cooja simulator

I have included the header file socket.h in contiki rpl-control message file but it gives an error that directory/file not found.The problem is that the client/server code written in a seperate C file works fine but as soon as I copy the code and put it in cooja it cant find the files.I need to send some data from cooja contiki to nodejs server.How to do that?

Upvotes: 1

Views: 191

Answers (1)

kfx
kfx

Reputation: 8537

Contiki does support the socket API. You can work with TCP and UDP directly: https://github.com/contiki-ng/contiki-ng/wiki/Documentation:-UDP-communication

Upvotes: 0

Related Questions