-
Notifications
You must be signed in to change notification settings - Fork 41
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
Hanging on Cayenne.begin on Arduino MKR WiFi 1010 #29
Comments
We aren't able to reproduce the issue here currently, but there are a few options you could try.
You might also try checking with the Cayenne Community to see if anyone else is seeing this issue and has a fix for it. |
Hello, Which firewall's ports are used by Cayenne MQTT library? Thanks |
You comment out the The ports used by the library are 1883 and 8883. You might try using another MQTT library, like the PubSubClient, and connecting to a test server to see if you also get issues. If so it's possibly a firewall or network issue. |
sorry library crashes in line 72 thanks |
Hi, Attempting to connect to WPA SSID: ********** Attempting to connect to the MQTT broker: test.mosquitto.org Sending message to topic: arduino/simple Sending message to topic: arduino/simple Sending message to topic: arduino/simple |
Hi, [5508] Connecting to ****************** writeMQTTString(&ptr, topicFilters[i]) writeChar(&ptr, requestedQoSs[i]) can you help me? thanks |
Hi, |
It hangs when you try to print out If you replace Are you able to subscribe to topics using the ArduinoMqttClient? Or the Paho Embedded C client, which is what this library is using? |
Hi, |
Strange that setting it to 0 works, but not using the enum 0 value that is cast to an Will just manually setting the value to 0 like that work for you? If not, you could also try experimenting with not using the Something like this might work in MQTTClient.c (I haven't actually tested this compiles and runs).
or maybe
|
I had the same issue and fixed it like this:
Seems some compilers optimize the enum type into |
Hi.
I'm trying to use Cayenne with on Arduino MKR WiFi 1010 but it hangs on Cayenne.begin...
Here's the code for library version 1.3.1
The debug log from Cayenne says that WiFi is connected and MQTT client is connected and built-in led blinks as expected. But it never gets back from Cayenne.begin and never blinks 3 times.
I did some print-debug ;) and found that it hangs when subscribing, line 68 in CayenneArduinoMQTTClient.h:
I tried to print debug deeper, but couldn't make
CAYENNE_LOG
work in CayenneMQTTClient.c ...Can you have a look?
Thanks!
The text was updated successfully, but these errors were encountered: