Hi. For the last two days I have been having a stange issue in the IoT Cloud. When I try to create a veriable in my thing. An error in die bottom middle pops up and give a script error. I cant then create the veriable.
After refrenshing google chrome a few times I will be able to create another 4 veriables. But my sketch do not get updtated with the veriables. When you open the thingProperties.h tab. Only the first veriable is declared non of the others.
Also when eventually being able create a veriable another erro at the bottom pops up say error "sketch not updated!"
I cleared the chache of chrome. I also opend up my account on another computer and on that computer it gave me the same errors.
I there anybody ells that has this erro currently on their Iot cloud?
sonofcy. I'm on the maker plan and in pro im on the enterprise plan.Have the same issue with both plans. Also tried a third computer and still the same on both plans.
That looks a bit like an http error. If the error is new, check with your network admins and see if any changes have been made. I doubt it is an Arduino error, as I am able to do what you can't.
I had this at work. Hi have it on my lan at home. I had a spare 4G router. So I set it up with a SIM card so its not connect anywhere on a lan. I then connected to it via wifi. Still with a new router, not connected to any of my previaus networks just connected to a CAT4 LTE router.
Stil the same problem.
Have asked Arduino for help from two days ago. They have not came back to me or even returned my request. So I'm stuck now and I have a deadline looming. So its pretty frustrating.
Do you understand the devices are tied to a specific network? And what role would a SIM card play? A SIM card is for a cell phone. One of us is confused, so just in case it's me I will drop out of this conversation. Good luck.
The error you're getting is related to something wrong with your sketch content (ino file or thingProperties.h). When you add a variable, the Arduino Cloud takes your sketch and tries to update some specific elements of your sketch with new variables, callbacks and so on. In order to update specific parts, the Cloud search for static elements in your sketch. Maybe one of these static elements is missing due to a manual change or failed update. Do you have ever changed the thingProperties.h files manually? I suggest you to copy the relevant part of your sketch (the loop and the setup content) then delete and re-create your sketch. The variables part will be updated and you can add again the relevant changes to the loop and setup. If this desn't solve the issue, please copy-paste the .ino and the thingProperties.h file here and we will check.
@mirkocurtolo. Thanks for your replay. I thought the same thing. Then I looked the other sketches I have not worked on recently and they gave me the same error. After that I created a completly new sketch. So the same erro came up in old sketches I did not edit recently.
Then I created a new sketch 3 new veriables. The first one I could create with no issue. The third and second one I hade to refresh my browser to get it to allow me to create a veriable. It gave me the same errors and it only created in the thingproperties one veriable that is the first one I created. the other two were not there.
Then I created another new sketch with three diffrent veriables. One for time, one for float and the last an interger. The first one was the only one that ended up in the thingsproperties.h again.
So, for a test I took the interger value and I created and used it to count up every one second in the loop function. Simple one second counter. When I compiled it came up with an error saying I did not declare the veraible. But I did declare it. I did the same with the float veriable. Also erro out on not declared. I deleted the code for the float and interger variable. Then I write code using the first time veraible I created and it did not give an erro after I compled it. This veriable was in the thingsproperties.h file.
I did one other thing. While the web page for the thing is open at the setup I looked at the developer tool in google chrome. I did the same when I opend the sketch tab. There were a lot of errors. Specifically the error 404.
So I dont know if this can tell you guys something. But I added a picture of what I found there
It seems there is no issue in creating a new sketch (with the first variable) and starting from the first update you start receiving the error. Currently, I've no idea why you have this kind of error but I can suggest you all the possible ways I can think to get around the issue. Create a thing from scratch and configure all the variables you need on the setup page. Then go to the skecth page https://app.arduino.cc/sketches and delete manually the sketch associated to that thing. If you return on the thing page and click on the sketch tab, the cloud will say to you that there is no sketch available and there will be a button that allow you to re-generate the sketch. The re-generated sketch should work and have all the variables. Pay attention to having a device associated with your thing so the sketch generated is already the working version.
Hi. I can now create veriables and they are now in the thingProperties.h. I can verify without a problem. I can create e new device and assositae it to my new sketch.
I still get the script error. I have added a screen shot
I get an error telling me somebody has been editing my sketch will I'm busy. Like we are working on the same sketch simultaniously. But that is imposaable. I have added a screen shot
I cannot upload. I click upload. It will only verify not start uploading after verification. There is no eror displayed in the console that I can say there is an error in my sktech. It just stop at varification and do not go any futher.
There is still many errors in the developer console. It looks like a war zone. I have added screenshots of that as well.
I can confirm that I can declare veriables and use them in my sketch. The sketch is then updated accordingly. The process of updating is very slow though. I have to wait a second or so for it to update in my sktech.
The "script error" is still present that goes a way tempotarily when I refesh my browser. But it does return. Cant save a veriable when the "script error" is present. I have to refresh and try declaring the veriable again.
The error that "another user just modified this sketch" is still present.
The OTA upload is super slow. I upload via OTa from my home LAN and work LAN. Its still very slow. USB upload is OK.
Whe I navigate to my thing and is in the setup. the below is in the developers code. Seems the Error 404 is still there. That cause the ERR_CONNECTION_REFUSED. There are errors in the sketch tab aswell. I added these below as well.
Just to let you know. The "script error" and the "another user just modified this sketch" is still present.
There is now some other issues that has popped up.
The H7 now has difficuly connecting to the cloud. I set the H7 up to use wifi. Some times it will briefly connect to the cloud but then it will lost connection all together.
When I'm going onto the serial monitor. The H7 makes the connection to the router. But do not connect to the cloud and shows an error on the serial monitor. The error is listed below.
I'm not sure how relavant this is but this has been working on 4 of the H7 devices I have. Now none of them connects to the cloud via wifi