Hi,
When creating an EEL new element for IOT Studio, where do you locate the function definitions from the original C code. I have not found an example that starts from a .c file and end up in an .eel file so far. This has kept me stuck on my development as I find the porting of original .c and .h files into .eel file confusing.
Thanks for your help !
Alejandro
Hello alejandro.abraham@utdallas.edu
I suggest to take a look at your metadata file of your element. In requires you should have written "gpio" like this:
"requires": [
"embedded", "gpio"
],
In your header be sure to include : ../app_src/atmosphere_platform.h and ../atmo/core.h
Let me know if this helps
Best regards,
Omar
alejandro.abraham@utdallas.edu - Have you reviewed the eel builder guide? - https://github.com/atmosphereiot/eel-builder/blob/master/examples/my_first_eel/README.md
Hi Richard,
Yes, I have. I created an EEL to read from an external button so as to learn how to use the EEL tool and the APIs. It looks like that after I created my button.eel and imported into IoT Studio, I get a compile error:
"unknown type name 'ATMO_GPIO_Device_Pin_t'"
I have tried with the following include files unsuccessfully:
#include "../atmo/core.h"
//#include "../gpio/gpio.h"
//#include "../app_src/atmosphere_platform.h"
Thank you.
Best,
Alejandro