After setting up a device (in my case a M5Stack Fire) and entering the WiFi name, WiFi password and IoT Cloud secret key and pressing "Save", no sketch is generated. When I check the only sketch available it was generated for the Arduino IoT Cloud Thing "Untitled" and contains no secret tab. How do I generate, or re-generate, a sketch?
Also, maybe related, the sketch page shows "No associated device found" even though the device is still connected via USB after being associated when it was recognised.
I don't know if I'm fully understanding your problem. Can you please share some screenshots of your problem?
Let me add some additional information that you might be probably already aware of, but just in case you are not.
The IoT Cloud has an embedded editor which is a simplified version of the full Web Editor.
You can change the name of the Thing from 'Untitled' to the name you want.
The IoT Cloud generates automatically a sketch depending on the variables, network configuration and device associated.
In the IoT Cloud editor, you can only see the main file of the sketch. If you have multiple files, you need to open the full Web Editor.
In the IoT Cloud editor, you can't see the implicitly created thingProperties.h and Secret files. They are created depending on the variables, network configuration and the device you have attached. These files can be seen in the full Web Editor, but it is not advisable to modify them, as they are automatically generated and your changes can be destroyed when you change the configuration of the Thing