Skip to content
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

"node-wifi-mqtt" fails to compile #32

Closed
thehi1 opened this issue May 2, 2021 · 3 comments · Fixed by #33
Closed

"node-wifi-mqtt" fails to compile #32

thehi1 opened this issue May 2, 2021 · 3 comments · Fixed by #33

Comments

@thehi1
Copy link

thehi1 commented May 2, 2021

I am also trying to compile the file node-wifi-mqtt.ino. The following message appears when compiling (I am using the Arduino IDE 1.8.13):

exit status 1
'SerialDebug' was not declared in this scope

What could be the cause?

Using atom I get the message:

C:/ XXXX PlatformIO/Projects/210502-191434-d1_mini_pro/src/node-wifi-mqtt.ino:955:5: error: 'SerialDebug' was not declared in this scope
     SerialDebug.debug(INFO, "mqtt_connect", "Connecting to MQTT broker");

Thanks in advance

@amotl amotl changed the title node-wifi-mqtt.ino node-wifi-mqtt.ino fails to compile May 2, 2021
@amotl
Copy link
Member

amotl commented May 2, 2021

Hi @thehi1,

thank you for writing in.

'SerialDebug' was not declared in this scope

It looks like the "SerialDebug.h" file referenced at line 302 can not be found. Can you look on the Arduino Library Manager for a corresponding library? [1]

With kind regards,
Andreas.

[1] It is https://playground.arduino.cc/Code/SerialDebugger/, actually. You can also find it at https://github.com/hiveeyes/arduino/tree/0.17.0/libraries/SerialDebugger.

@amotl
Copy link
Member

amotl commented May 2, 2021

You can also get all of the libraries used within the programs into the libraries folder by invoking:

git submodule update --init --recursive

@amotl amotl changed the title node-wifi-mqtt.ino fails to compile node-wifi-mqtt fails to compile May 2, 2021
@amotl amotl changed the title node-wifi-mqtt fails to compile "node-wifi-mqtt" fails to compile May 2, 2021
@amotl
Copy link
Member

amotl commented May 2, 2021

Hi @thehi1,

#33 will now use a different SerialDebug library. Because the SerialDebugger by Arduino referenced above seemed very much outdated, we switched over to another library by Joao Lopes which seems to be amongst the most popular ones when searching on PlatformIO [1].

Please let us know if that actually works. At least, it compiles without errors on my machine when invoking make.

With kind regards,
Andreas.

[1] https://platformio.org/lib/search?query=serialdebug

@amotl amotl closed this as completed in #33 May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants