For some reason, when compiling with platformio, the compiler halts because the do_send() function is used a few lines before it is defined.
The error messages reported here was obtained with the ttn-abp.ino example, but this issue affects most of the examples.
Relevant error message
src/main.cpp: In function 'void onEvent(ev_t)':
src/main.cpp:138:82: error: 'do_send' was not declared in this scope
os_setTimedCallback(&sendjob, os_getTime()+sec2osticks(TX_INTERVAL), do_send);
^
*** [.pioenvs/megaatmega2560/src/main.cpp.o] Error 1
Steps to reproduce
Setup a new platformio project with
platformio init --board megaatmega2560
Edit the platformio.ini file so that it looks like this
For some reason, when compiling with platformio, the compiler halts because the
do_send()
function is used a few lines before it is defined.The error messages reported here was obtained with the
ttn-abp.ino
example, but this issue affects most of the examples.Relevant error message
Steps to reproduce
Setup a new platformio project with
Edit the
platformio.ini
file so that it looks like thisCopy-paste the
ttn-abp.ino
example into thesrc/main.cpp
file. Or if yor're lazyTry to compile the project
Full error message