-
-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'do_send' was not declared in this scope #268
Comments
You need to show the error, processor use, ver of ide,,,etc, etc....
On Tue, Feb 18, 2020 at 6:18 AM jbrepogmailcom ***@***.***> wrote:
In example code ttn-abp, I get error in subject at line
os_setTimedCallback(&sendjob, os_getTime()+sec2osticks(TX_INTERVAL),
do_send);
What can I do?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#268?email_source=notifications&email_token=ABC4EK67PKYWDZBFZHV32R3RDPU3VA5CNFSM4KXFN6DKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOKSGDQ>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABC4EKY4T3GWDPH4VF4E6NTRDPU3VANCNFSM4KXFN6DA>
.
--
~~ _/) ~~~~ _/) ~~~~ _/) ~~~~ _/) ~~
Tom Lafleur
|
Also having this issue
|
I also got this issue when using PlatformIO.
|
Normally, the Arduino IDE automatically generates forward declarations for functions, so they can be used before they are defined. In this case, I suspect this declaration is not properly generated, which prevents the I see @marcel151 uses PlatformIO, I vaguely recall that PlatformIO did not implement this forward declaration generation (and thus is not 100% Arduino compatible), but I'm not entirely sure. It seems that @charlesfayal is using Arduino 1.9.x beta, which I think completely changed the way these forward declarations are generated, so this might be a bug there. Also, @charlesfayal seems to be using the MCCI LMIC version and some As a solution, you could try adding an explicit forward declaration. I.e. add the following somewhere near the top of the sketch (e.g. just before the
(this is essentially the same as the Alternatively, you can move the If you try this, let me know if it works. |
I saw that renaming the main.cpp to main.ino might help. And it did! It works now, but I don't know why. |
Ah, then that was the problem. The Arduino IDE (and apparently also PlatformIO), compiles I had noticed the |
Thank you for the explanation. I got the sketch from here, but I just copied the contents of the "ttn-otaa.ino" to the "main.cpp" of the newly created Arduino-Project in PlatformIO. |
Fix #268: these callbacks are now in client data
When i change it to main.ino, i get this crash after compiling. I dont know what can it be ␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀ets Jun 8 2016 00:22:57 rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) |
In example code ttn-abp, I get error in subject at line
os_setTimedCallback(&sendjob, os_getTime()+sec2osticks(TX_INTERVAL), do_send);
The board is TTGO LoRa32. What can I do?
The text was updated successfully, but these errors were encountered: