-
Notifications
You must be signed in to change notification settings - Fork 18
nodemcu_with_led - compilation errors #23
Comments
I'll have a look this weekend. Continuous integration is also failing at the moment. There is one more issue: This project is using a 2018 version of wakaama. lwm2m has evolved in the meantime and wakaama adapted its code structure. I'll see if I can update. |
Thank you for replying so fast! I'm waiting patiently :) |
Any news since then? Did you have the time to check it? |
Unfortunately not yet. I suggest to use wakaama directly for the moment until I find time to solve this. |
Allright, no problem I just wanted to know :) Wakaama isn't really appropriate for me, since it is a Linux application, but I would like to use LwM2M on an ESP-based board (like NodeMCU) or Arduino. |
Same Issue in Tag 1.0:
Can you estimate, when you have time to take a look? |
@davidgraeff Any updates on this? |
Seems like this issue is still persisting, at least that's what's holding me back from compiling as well. |
The lwm2m wakaama library has evolved and changed their API too much. I'm archiving this project. |
Hi all!
I'm trying to use wakaamaNode library (latest version, freshly downloaded) on my NodeMCU board (based on esp8266, https://docs.zerynth.com/latest/official/board.zerynth.nodemcu_esp32/docs/index.html ).
I use PlatformIO as development tool (latest version, freshly re-installed).
I tried to upload a few simple esp8266 sketches (WiFiScan, WiFiAccesspoint ) and they worked on the same board, so the board is allright.
Next step: I wanted to try the nodemcu_with_led example code ( https://github.com/Openhab-Nodes/wakaamaNode/blob/master/examples/nodemcu_with_led/src/main.cpp ) from wakaamaNode as a beginning. I assumed that it should work without any modifications on my nodemcu board. But when I try to upload it with PlatformIO, I get two compilation errors, see below.
I've read the documentation too, especially the Connection API, as my problem is related to that in my opinion. I've noticed, that the connect.h and connect.cpp files don't match the Connection API documentation.
According to Connection API docs ( https://openhab-nodes.github.io/wakaamaNode/api/connection-api/#connection-c-api ) the problematical functions should look like
int process(struct timeval* next_event);
and
void watch_and_reconnect(struct timeval* next_event, int reconnectTime);
In the downloaded wakaamaNode library these functions look like:
'void process();'
and
watch_and_reconnect
is completely missing from connect.h and connect.cpp, so no wonder I get these compilation error.Am I doing something wrong, could you please explain?
Thanks for reading, and any help is appreciated! :)
The text was updated successfully, but these errors were encountered: