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

Compile-Error with PICOMQTT_DEBUG #16

Closed
MCSE-2000 opened this issue Sep 29, 2023 · 2 comments
Closed

Compile-Error with PICOMQTT_DEBUG #16

MCSE-2000 opened this issue Sep 29, 2023 · 2 comments

Comments

@MCSE-2000
Copy link

MCSE-2000 commented Sep 29, 2023

I have enabled debug (PICOMQTT_DEBUG) and now I get the following errors:
/mnt/..../libraries/PicoMQTT/src/PicoMQTT/incoming_packet.cpp:70:19: error: #if with no expression
70 | #if PICOMQTT_DEBUG
| ^
/mnt/..../libraries/PicoMQTT/src/PicoMQTT/incoming_packet.cpp:81:19: error: #if with no expression
81 | #if PICOMQTT_DEBUG
| ^
/mnt/.../libraries/PicoMQTT/src/PicoMQTT/incoming_packet.cpp:97:19: error: #if with no expression
97 | #if PICOMQTT_DEBUG
| ^

But after the correction from #if PICOMQTT_DEBUG to #ifdef PICOMQTT_DEBUG no DEBUG information comes.

My problem was that the client did not work.
I took 2 ESP-01, one with basic_server.ino (static IP 192.168.2.40) and one with basic_client.ino (static IP 192.168.2.41).
I only got the following messages:
Publishing message in topic 'picomqtt/esp-E8:68:E7:80:0A:03': Hello #1
Publishing message in topic 'picomqtt/esp-E8:68:E7:80:0A:03': Hello #2
Publishing message in topic 'picomqtt/esp-E8:68:E7:80:0A:03': Hello #3
...

No answer Received message from server.

UPDATE 01.10.2023:
The client is working now. The ESP-01S has a defect. The ESP-01S client did not respond to a PING. But in the FritzBox it was displayed ONLINE and the WiFi.status was WL_CONNECTED. Another ESP-01 with the MAC E8:68:E7... did not work either. With an old ESP-01 now also the client works. But DEBUG info I still do not get.

@mlesniew
Copy link
Owner

mlesniew commented Oct 2, 2023 via email

@MCSE-2000
Copy link
Author

Okay, thank you

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

No branches or pull requests

2 participants