Missing Symbols in Firmware?

Moderators: lily.li, violet, jessie, chao.zhang

kaktus.martin
Pre-kindergarten
Pre-kindergarten
Posts: 13
Joined: Tue Dec 29, 2015 9:33 pm

Re: Missing Symbols in Firmware?

Post by kaktus.martin » Sun Jan 10, 2016 12:37 am

and most APIs are only available to the main
thread
Ah okay, thanks for your answer... is somewhere a list which API's can only be called from the main thread?

kaktus.martin
Pre-kindergarten
Pre-kindergarten
Posts: 13
Joined: Tue Dec 29, 2015 9:33 pm

Re: Missing Symbols in Firmware?

Post by kaktus.martin » Sun Jan 10, 2016 10:23 am

Since I know that not all function can be called out of a sub thread, I wrote my own functions where it doesn't matter where you call the apis.... I uploaded you an example in the attachement.

Maybe the same problem exists in the Arduino IDE (I'm using Eclipse)... because I saw that in the file ../Eclipse\LINKIT_ASSIST_SDK\custom\arduino\main.cpp the loop(); of arduino is also handled with a sub-thread... could this be the reason why the apis in the arduino IDE also not work?

blkhawk
Pre-kindergarten
Pre-kindergarten
Posts: 9
Joined: Tue Dec 29, 2015 11:38 pm

Re: Missing Symbols in Firmware?

Post by blkhawk » Tue Jan 12, 2016 5:43 pm

This is cool - I haven't tried it yet but i might even be able to use the scheduled wake-up stuff. Sadly the module still draws 4ma when "off" so really long term monitoring is out of the question.

Thanks for finding out why there were inaccessible API calls.

Post Reply