• I would like to use this library https://github.com/mscdex/cap on a NodeMCU. However it has Include files which are C header files.
    Could someone help me by letting me know if I can use this library on a NodeMCU or any other board that can run Espruino? and Also if there is any workarounds if its not possible on a NodeMCU.

    Also, I am new to Espruino, when I go to http://www.espruino.com/binaries/ I see lots binaries with the name ESP82866 . Since my goal is to use a NodeMCU, what Should I be using?

  • I'm afraid in this particular case you're probably out of luck - you can include C source files and headers in your own Espruino compile, but the ones in that library seem to reference a binary blob compiled for x86-64 - which obviously wouldn't work on ESP8266 or ARM devices.

    Plus, I think for packet capturing most libraries are going to be referencing the underlying operating system - and Espruino doesn't really have one of those. You'd have to use the packet decoding part of the library but then create your own C code that used the ESP8266 APIs to get the packets in the first place.

  • Ive been reading about extending the Espruino Firmware with our own C files. but all of them use C includes which are provided by the Espruino Firmware. (https://www.espruino.com/Extending+EspruĀ­ino+1) and (https://www.espruino.com/Extending+EspruĀ­ino+2)
    And on reading more about using RAW Sockets with C, I'm only getting details on doing so with OS dependent libraries such as the one here http://www.tenouk.com/Module43a.html
    I tried to search for ESP8266's Libraries but I couldn't find any solution. might be because Ive never worked at such a low level before.
    Can you provide me with a site that contains the native APIs/ methods to create raw sockets on ESP8266 with C?

  • I can't help as I don't do much work on ESP8266 - but someone else on here might have some ideas to help you?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

using libraries with C header files for to be included

Posted by Avatar for user88247 @user88247