Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

#define DEBUG 1 no output from basecamp #24

Closed
terwarf opened this issue Jan 27, 2018 · 1 comment
Closed

#define DEBUG 1 no output from basecamp #24

terwarf opened this issue Jan 27, 2018 · 1 comment

Comments

@terwarf
Copy link

terwarf commented Jan 27, 2018

I just created this basic project:

#include <Arduino.h>

//Define DEBUG to get the Output from DEBUG_PRINTLN
#define DEBUG 1
#include <Basecamp.hpp>

Basecamp iot;

void setup() {
    iot.begin();
    DEBUG_PRINTLN("TEST");
    Serial.println("Setup Complete");
}

void loop() {
}

Output on the serial is:

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:812
load:0x40078000,len:0
load:0x40078000,len:11404

entry 0x40078aa0
Basecamp V.0.1.60.1.5
MAC-Address: 30:ae:a4:1a:c7:dc
TEST
Setup Complete

I see some uses of DEBUG_PRINTLN in the base file (Basecamp.cpp), but I get no output from them.
Only the DEBUG_PRINTLN I inserted after iot.begin() is working.

I'm using PlatformIO, installed Basecamp via internal library manger.
The Board I'm using is a bare ESP-WROOM-32.

Any Ideas?

@terwarf
Copy link
Author

terwarf commented Jan 28, 2018

Figured it out.
For other users of Platformio:
you need to set

build_flags =
  -D DEBUG=1

in your platformio.ini in the [env:yourboard] section.

@terwarf terwarf closed this as completed Jan 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant