[Reference] Debug mode activation

Questions about the Waspmote v15 and its modules
Post Reply
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

[Reference] Debug mode activation

Post by libelium-dev » Tue Oct 25, 2016 2:31 pm

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.


Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest