Hello, I’m doing a simple Blynk project using ESP32 and Arduino Uno. Basically, I want to show the sensor data from the Uno to the app that I created in Blynk but it seems to have a problem in connecting to the server. I’ve included my sketch, its output, and some troubleshooting that I have done.
Is that serialmonitor screen from the code you posted? If so then something is going wrong. With Blynk IOT and Library 1.0.1 it should connect to blynk.cloud.
if you do manual changes use blynk.cloud instead of blynk-cloud.com
Yes, the serial monitor output is from the code I posted. I don’t know why it is not connecting properly. I have done every troubleshooting method that I found in this forum and nothing worked. I tried contacting ISP but it is also no good.
I tried putting blynk.cloud and still has the same output
They are requiring us to use an atmega microprocessor in this project but there is no problem in that part. Serial communication is working, only the blynk part is the problem
Is the code that you’ve posted the EXACT code that you used? (You didn’t omit any additional lines of code at the beginning of your sketch?)
blynk-cloud.com is the url for the Blynk Legacy cloud servers.
These two lines (which by the way MUST be the first two lines of code in your sketch) imply that you are using Blynk IoT rather than Legacy.
Can you confirm that your auth token is from Blynk IoT?
The url for the IoT cloud servers is blynk.cloud or https://sgp1.blynk.cloud (THis forces a connection to the Singapore cloud server, rather than relying on DNS to correctly resolve to the Singapore server.
These tell the Blynk library that this is an IoT sketch, so it should try to connect to blynk.cloud rather than blynk-cloud.com but for some reason that’s not working.
I’d manually delete ALL of the Blynk libraries from your machine then re-install the 1.0.1 library.
You could, and you could try specifying port 8080 instead, as your ISP may be blocking some traffic on port 80
So, I tried changing my code to this one, putting template ID, device name, and auth token on top of the code. I also reinstalled the 1.0.1 Blynk library and still has the same output It is still not connecting to the server
Still does not work. I’m already thinking that the problem is my ISP. Should I try connecting on different ISP? I tried connecting it again using mobile data since I updated the library and still doesn’t work