using libraries with C header files for to be included #6026
Replies: 1 comment
-
Posted at 2018-03-27 by @gfwilliams 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. Posted at 2018-03-28 by user88247 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+Espruino+1) and (https://www.espruino.com/Extending+Espruino+2) Posted at 2018-03-28 by @gfwilliams 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? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-03-26 by user88247
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?
Beta Was this translation helpful? Give feedback.
All reactions