Esp32 not coming online and editor doesn't showing options


Iam trying to execute my code on editor but it isnt showing me any options for port nor the board,also i have already installed arduino create agent and checked the usb device manager, it is updated and showing but dont why editor is not showing , also create agent is displaying following on debug console. I need the solution for this as early as possible. i have created things and dashboard as well.
also without things and dashboard, when i create sketch only it is displaying me the options for device

I moved your topic to a more appropriate forum category @abdullah_raja1.

The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.

In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.

Thanks in advance for your cooperation.

Hi @abdullah_raja1.

Click the "SELECT DEVICE" button on the Cloud Editor toolbar:

image

Do you see a port in the "Select device" dialog that opens when you click that button? Something like this:

image

When using a board like the "uPesy ESP32 Wroom DevKit" that has a general purpose USB to serial bridge chip (in this case the Silicon Labs CP2102), Arduino Cloud is not able to automatically identify which board is producing a port, so you will see that the port produced by the board is labeled "Unknown". This is no real problem because when you click on the port the "Unknown device, identify its type" dialog will open. You can then select the model of board you are using from that dialog. As long as you make sure to select the correct port and board then everything will work fine.

When it comes to Arduino Cloud IoT Thing sketches, unfortunately the situation is different as you will notice that when a Thing sketch is open in Cloud Editor it doesn't allow you to manually select a port like you can do with normal sketches. This is caused by a bug recently introduced into Arduino Cloud that affects ESP32 and ESP8266 boards. I have submitted a formal report to the Arduino Cloud developers and will report back here if I have any news to share regarding a resolution.

For now, please use Arduino IDE when you need to upload Arduino Cloud IoT Thing sketches to your ESP8266 board via the serial port.

You can use the Arduino Cloud sketchbook integration feature of Arduino IDE 2.x to get convenient access to all your Arduino Cloud sketches (including Thing sketches) for use in Arduino IDE:

https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-cloud-sketch-sync

iam facing this bug issue. Can you update me how long will it take?

also can you tell me if i can link this sketch with my things and dashboard as well

I don't have any news to share. I'll be sure to post an update here if I hear anything from the developers. I don't always receive a notification from them when a bug fix is deployed so if you don't hear back from me then it is worth checking Arduino Cloud periodically to see if the bug was fixed without an announcement.

I'm not sure I understood correctly what you mean by this. Please provide a more detailed description of what you mean by this in a reply on this forum thread to help us to understand it.

so with the help of latest ide, i will be able to sync cloud with ide, so i wanna ask because i want to display my data on dashboard link with my code so will i be able to link things and dashboard to that ide as well or not?

Yes. The Thing and dashboard will work exactly the same after you upload the sketch using Arduino IDE as it would if you had uploaded the sketch using Arduino Cloud Editor. The sketch program runs on the ESP32 board, so the method by which that program binary was uploaded to the ESP32 board is irrelevant.

You can continue to use Arduino Cloud to set up IoT Devices, Things, and dashboards, to write and compile sketches, and to interact with the Thing via dashboards. The only problem is the inability to upload to the board via the serial port. The bug does not occur when using a non-IoT sketch so you can work with non-IoT sketches in Arduino Cloud, including uploading them to ESP32 and ESP8266 boards, just as always.

The bug is specific to serial ports. Arduino Cloud also has an OTA (over-the-air) upload feature that allows you to uploading to boards via the Internet This feature is available if you have an "Entry" Arduino Cloud plan or higher. You must use the serial port to upload the IoT Thing sketch to a board for the first time, or if the board is no longer able to connect to the network using the credentials that were configured the last time the sketch was uploaded, but once an IoT Thing sketch is running on the ESP32 board with access to the Internet, it will produce an OTA port. You can then upload to that OTA port via Arduino Cloud. So the workaround of using Arduino IDE to upload the sketch is only required in cases where the board is not producing an OTA port.

so can you brief me a little on how to sync all of these using arduino ide 2

Follow the tutorial here:

https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-cloud-sketch-sync

If you have any questions or problems while following it, add a detailed description in a reply here and I'll help you out. Make sure to include the following information:

  • What did you do?
  • What were the results you expected from doing that thing?
  • What were the results you observed that did not match your expectations?

Make sure to include the full and exact text of any error or warning messages you might have encountered.

i am pushing the sketch in ide but it is not updating in cloud

Try refreshing the browser tab where you have the Arduino Cloud Editor page open. If you already have the sketch open in Cloud Editor, you won't see changes you make in Arduino IDE and then push back to Arduino Cloud until after you refresh the Cloud Editor page in the browser.


Screenshot 2024-05-06 145911
i have sync my ide with cloud but my device is still showing offline

Did you upload the Thing sketch to your ESP32 board? The device will only go online once it is running the Thing sketch program. The Thing sketch program will only start running on the board after it has been uploaded to the ESP32 board.

Syncing only updates the list of Cloud sketches shown in Arduino IDE from your online Arduino Cloud account. It doesn't have anything to do with uploading the sketch to the board.

Please try this:

  1. Start Arduino IDE if it is not already running.
  2. If you have not already done so install support for ESP32 boards by following these instructions:
    https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-arduino-ide
  3. Select Tools > Manage Libraries... from the Arduino IDE menus.
    The "LIBRARY MANAGER" view will open in the left side panel of the Arduino IDE window.
  4. Type ArduinoIoTCloud in the "Filter your search..." field.
  5. Scroll down through the list of libraries until you see the "ArduinoIoTCloud" entry.
  6. If the library is not already installed, you will see an "INSTALL" button at the bottom of the entry. Click the button.
    An "Install library dependencies" dialog will open.
  7. Click the "INSTALL ALL" button in the "Install library dependencies" dialog.
    The dialog will close.
  8. Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:

    ⓘ Successfully installed library ...

  9. Click the icon that looks like a folder on the left side of the Arduino IDE window.
    The "SKETCHBOOK" view will open in the left side panel of the Arduino IDE window.
  10. Select the Thing sketch from the list of Cloud sketches.
    Some icons will appear to the right side of the sketch name.
  11. Click the icon that looks like a cloud with a downward pointing arrow ("Pull Sketch").
    A "Synchronizing Sketchbook: pulling ..." notification will appear at the bottom right corner of the Arduino IDE window.
  12. Wait for the pull operation to finish, as indicated by the appearance of a "Done pulling ..." notification at the bottom right corner of the Arduino IDE window.
  13. Click the ●●● icon to the right of the Thing sketch name in the "SKETCHBOOK" view.
    A menu will open.
  14. Select "Open Sketch in New Window" from the menu.
    The Thing sketch will open in a new Arduino IDE window.
  15. If it is not already, connect your ESP32 board to the computer with a USB cable.
  16. Select Tools > Board > esp32 > uPesy ESP32 Wroom DevKit from the Arduino IDE menus.
  17. Select the serial port of your ESP32 board from the IDE's Tools > Port menu.
  18. Select Tools > Serial Monitor from the Arduino IDE menus.
    The "Serial Monitor" view will open in the bottom panel of the Arduino IDE window.
  19. Select "9600" from the baud rate menu near the top right corner of the "Serial Monitor" view.
  20. Select Sketch > Upload from the Arduino IDE menus.
  21. Wait for the upload to finish successfully.
  22. Watch the "Serial Monitor" view. You will see messages that indicate the progress of the ESP32 board connecting to your Wi-Fi access point, and then to the Arduino Cloud IoT server.
  23. Wait for the board to successfully connect to the Arduino Cloud IoT server, which will be indicated by the following message being printed in Serial Monitor:
    Connected to Arduino IoT Cloud
    

After that, if you check the Thing status on the Arduino Cloud website you should see that it is "online". You should now be able to interact with the Thing via Arduino Cloud IoT dashboards.

1 Like

Great response, Ptillisch! My issue, similar to those reported above, was solved by installing the ArduinoIoTCloud library in the Arduino IDE. Thanks

can you tell me in detail how you solved and did it connect to dashboard as well?

@abdullah_raja1 did you carefully follow the instructions I provided in my previous reply? If you had any questions or problems while or after following them, just add a detailed description and I'll try to help you out.

With the installation of the ArduinoIoTCloud library in the IDE, I'm finally able to download sketches from the Cloud to the IDE, update them, upload them to ESP32 DOIT and WROOM boards, monitor statuses on the Serial Monitor, and reload sketches into the Cloud. Everything happens smoothly, without any hitches. However, what I still don't know how to do is upload sketches directly from Cloud/New Editor to ESP32 DOIT and WROOM boards (see screenshot), and this is a serious issue because I can't use the Dashboards or work remotely. Furthermore, yesterday the option to switch back to the Old Editor, which had never worked for me, was removed, where these problems didn't exist!

Hi @gmbgnn.

As I explained earlier in this thread. It is not possible to upload Thing sketches to the serial ports of these boards at this time due to the bug.

The bug is specific to serial ports. Arduino Cloud also has an OTA (over-the-air) upload feature that allows you to uploading to boards via the Internet This feature is available if you have an "Entry " Arduino Cloud plan or higher. You must use the serial port to upload the IoT Thing sketch to a board for the first time, or if the board is no longer able to connect to the network using the credentials that were configured the last time the sketch was uploaded, but once an IoT Thing sketch is running on the ESP32 board with access to the Internet, it will produce an OTA port. You can then upload to that OTA port via Arduino Cloud . So the workaround of using Arduino IDE to upload the sketch is only required in cases where the board is not producing an OTA port.

The bug does not affect Dashboards. Dashboards work just the same if you upload the sketch to the board using Arduino IDE as they would if you had uploaded using Arduino Cloud Editor.

After using Arduino IDE to upload the Thing sketch to your board, if you are having a problem with the dashboard then please open a new forum topic and we'll help you out over there.

The bug should not affect the ability to work remotely. It only affects uploading via serial ports. Uploading remotely via OTA ports is not affected.

Yes, after giving access to both editors for some months in the interest of providing a smooth transition from the old editor to the completely rewritten new editor, the Arduino Cloud developers decided that the new editor had reached maturity and so the old editor was permanently removed. From now on, there is only one Cloud Editor.

Good news, everyone! The bug that caused Cloud Editor to not recognize the serial ports of ESP32 and ESP8266 boards has now been fixed. I apologize for any inconvenience this has caused you.

There is one remaining problem you should be aware of: if you have multiple Arduino boards (or other devices that produce serial ports) connected to your computer, Cloud Editor might pick the wrong port to use. I have submitted a report about this problem to the developers. For now, please disconnect any additional Arduino boards from your computer before opening an Arduino Cloud IoT Thing sketch in Cloud Editor when using a serial port to upload to the board.

Please give it a try and let us know if you still have any problems.