I'm currently developing an IoT project which connect a mobile application (smart phone) to control a smart house basically like a house automation system which using Arduino as a platform. I've been running the whole system using localhost, and everything runs smoothly. My problem is now, I want the whole system to be in my cPanel Hosting, and turns out it fails to connect as shown in the serial monitor (two photos attached). I already tried to change the localhost URL to cPanel Hosting URL and I also tried to change the localhost IP to shared IP in cPanel, but still nothing happened. For your information, I'm using WiFi Module ESP8266 (Node MCU) as the hardware in the smart house prototype. Is there any specific way to help me to solve this problem? As attached is my serial monitor on Arduino, supposedly the -1 turns into 200/400 which shows that my system is connected to the hosting.
https?
Yes
do you use WiFiClientSecure ?
I didn't use it, should I? And how?
see
Avid_IoT:
I didn't use it, should I? And how?
if you connect to https you should use it.
see the examples
Oh I see, I just need to add some code into the Arduino IDE only isn't?