I have a NodeMCU and a website (free website domain provided by hpage.com) and I have to send and receive some data (suppose a 8-bit number) from the website to the NodeMCU via internet.
The NodeMCU is connected to internet through WiFi hotspot of an Android phone.
Can anyone provide an example code?
I have seen the system working on WiFi LAN, and I don't want to limit it to local network.
- How can I address the NodeMCU from the website?
- Does the NodeMCU need to be a server or just a client?
Thanks in advance for kind help. I can't use a WiFi router, I have to use a android phone hotspot in this case.