-
Notifications
You must be signed in to change notification settings - Fork 78
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
MQTT won't connect to AWS IoT without serial connection. #62
Comments
Hi @weimiao86. Do you have something like this in your sketch? while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
} This code will cause the sketch to wait there until the serial port is opened. That is useful because, without it, you would not be able to see important information printed to However, you must not have this code in a sketch that is intended to run without a serial connection because that would mean the program hangs at that line forever. |
@per1234 No, I don't have |
A question related: So this could could be our AWS endpoint refusing (we can't ping the device either) - assuming this is not the serial loop (this has been addressed) what is the recommendation for learning what is causing the connection to fail? We have used AT tests, viewed log files. |
The Pubsubclient works with a battery. I don't understand why this library requires the serial connection to work. |
I am having the same issue with MK1000 and ArduinoMqttClient. Keeping the board plugged into a computer isn't really feasible for my application. And for Pubsubclient I can't seem to get it to work with MK1000 and wifi101 library. Anyone have success with alternatives to ArduinoMqttClient and wifi101 or something that works on MK1000? |
@hcorn82 From my test, I found it may also be related to the computer or the driver. Try downloading the code to Arduino on a different computer, or try the Arduino online IDE https://create.arduino.cc/editor, it works for me. |
@weimiao86 I've been using the Arduino web editor. But with my limited knowledge I am unable to get Wifi101 working without |
Hi,
I am using the Arduino MKR NB1500 to connect to the AWS IoT.
My current issue is the MQTT won't connect to AWS if the USB serial port is not recognized by my computer.
Scenarios as below.
My final goal is to power the Arduino from the power bank or VIN pin, but none of them work.
Please help, thank you! here is the log.
The text was updated successfully, but these errors were encountered: