Page 1 of 1

[Reference] Debug mode activation

Posted: Tue Oct 25, 2016 2:31 pm
by libelium-dev
Hi all,

It's very useful for us to know the output of a code with the debug mode activated when there are issues with any module. With debug mode enabled, some information is printed through the USB that help us to find where could be the error.

For debug mode activation you should modify one line at the .h file at the beginning of the library you are interested and you normally can choose between 3 levels.

Code: Select all

#define _3G_debug_mode	0    <---------deactivated

#define _3G_debug_mode	1    <---------some additional info

#define _3G_debug_mode	2    <---------full info
To find the .h libraries files:
or at the core libraries:

At some libraries there is just a commented line that you have to uncomment.