Arduino LMIC.h Library Errors

I'm trying to put some functions from the OTAA example into header files and classes. I have one class that uses the onEvent and do_send functions. However, I've ran into an error with this line:

os_setTimedCallback(&sendjob, os_getTime() + sec2osticks(TX_INTERVAL), do_send);

The error I'm getting is "invalid use of non-static member function void Temp::do_send(osjob_t*)"

I'm at a loss to this, I've tried making these two functions static and it still hasn't worked.

If anyone has any advice I'd appreciate it.

Post complete code!

The compiler is telling you that you specify a function that isn't static (probably because it's a class method). As we have no clue about the rest of the code we cannot help you further.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.