libcoap porting to esp8266

parmar7725274
Posts: 21
Joined: Wed Jun 03, 2015 1:20 pm

libcoap porting to esp8266

Postby parmar7725274 » Thu Sep 14, 2017 6:02 pm

Hi there,

For my project I'm planning to port libcoap (https://github.com/obgm/libcoap) using RTOS-SDK. I have gone through esp-idf(https://github.com/espressif/esp-idf) in that you have already port libcoap (https://github.com/espressif/esp-idf/tr ... nents/coap).

Here is my doubts. Can you guys help me for this :D

1. Can I use esp-idf for ESP8266 ? because as per my understanding both are using same microcontroller and hopefull wifi stack also will be same. :|
2. Is it feasible to port libcoap ? you guys have already port it for esp32. so hopefully you are having handon experience on this. It will be helpfull if you provide little guide on this. :D :D

regards,
Prakash

pratik

Re: libcoap porting to esp8266

Postby pratik » Fri Sep 15, 2017 2:38 pm

I'm sure you could port the library. You can have memory allocation routines using os_mem functions. BSD style sockets are also available on RTOS SDK. However, you can also get it on nonOS SDK.
No, you cannot use ESP-IDF on ESP8266, the cores are not the same. The peripherals are very similar. However, instead of porting the CoAP library from scratch to ESP8266, you would be better off porting it from the ESP32 port to ESP8266 port.

Who is online

Users browsing this forum: No registered users and 63 guests