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.