Closed jojo1212 closed 3 years ago
Could you please provide some logs/crashreports? Where do you see that error?
This error shows up on the serial Monitor after uploading the sketch. I was using an MKR 1010 at the moment of testing. I did not copy the debug console window at that time when I got the error. But one of the customer with the same issue shared his Create agent debug console.
> {"Version" : "1.2.0"}
> {"Commands" : ["list", "open [portName] [baud] [bufferAlgorithm (optional)]", "send [portName] [cmd]", "sendnobuf [portName] [cmd]", "close [portName]", "bufferalgorithms", "baudrates", "restart", "exit", "program [portName] [board:name] [$path/to/filename/without/extension]", "programfromurl [portName] [board:name] [urlToHexFile]"]}
> {"Hostname" : "mycomputername"}
> {"OS" : "darwin"}
> list
> { "Ports": [], "Network": true }
> { "Ports": [ { "Name": "/dev/cu.usbmodem2201", "SerialNumber": "211544AD50534D53302E3120FF192615", "DeviceClass": "", "IsOpen": false, "IsPrimary": false, "Baud": 0, "BufferAlgorithm": "", "Ver": "1.2.0", "NetworkPort": false, "VendorID": "0x2341", "ProductID": "0x8054" } ], "Network": false }
Error: ArduinoIoTCloudTCP::handle_ConnectMqttBroker could not connect to mqtts-sa.iot.arduino.cc:8883
@jojo1212 this looks like an error from the sketch running on the board, right?
@zmoog the sketch I used a skecth which was working before from opla kit. Later when I uninsatlled the agent, deleted the device and reinstalled the agent again everything worked fine. I didn't make any changes to the sketch other than associating a board.
Closing because this is not an issue with the agent. The error Error: ArduinoIoTCloudTCP::handle_ConnectMqttBroker could not connect to mqtts-sa.iot.arduino.cc:8883
seems to come from the ArduinoIoTCloud lib here. The task of the agent is simply to upload code to the board and read the serial from it. This error seems to come from the serial, as far as I know the agent seems to be working fine
I am getting the same error in the serial monitor. The nano 33 iot seems to disconnect from wifi every now and then and eventually just stalls. I tried including the state machine program by Klaus_K https://forum.arduino.cc/index.php?topic=664834.15 but still having issues. I need this device to be connected remotely 24x7. Anyhelp would be appreciated.
Bug Report
Describe the bug
This error usually shows up randomly and oce it starts to show up it never goes away.
To Reproduce
Randomly comes up, even if you follow the procedure properly.
Expected behavior
No connection to Arduino IoT cloud.
Environment (please complete the following information):
Additional context
I have got this error multiple times and ususally I solved this error my reinstalling the agent again and then adding the device as a new board.