Is it possible to connect NodeMCU to 3G/4G networks - if so, how?

Hi!

I have built an application that fetches data from an SQL database and plots the data on a map as a marker. In order to upload the data, I am using a NodeMCU attached to a GPS module.

Currently, I am walking around using the wireless hotspot on my phone that the nodemcu connects to. However, with the current set up it means that a WiFi point is always needed.

I want to connect the NodeMCU to a 3G network, so that it can upload to the database via the 3G network as opposed to my Phones hotspot.

How may I go about doing this?

Thanks in advance.

Either I misunderstand your answer, or your answer didn't answer my question in the slightest?

Most WiFi devices, including your NodeMCU, do not also have the components required to connect directly to a 3G network.

Consequently you have to use an intermediate device such as the hotspot on your phone or a router in order to connect such a WiFi device to a 3G network.

Don

To add on to what Don wrote.

The cheap GSM modules for Arduino are 2G. Many countries have eliminated 2G.
The 3G modules are expensive.

Someone had asked about 3G modules and there isn't a cheap one available yet was the answer.

Perhaps, someone else knows differently.

One 3G option is the Arduino MKR1400.

Another 3G option is the Adafruit FONA 3G.

Neither option is cheap. If you want other options, google "arduino 3g".

I was able to connect my NodeMCU to my iPhone using my personal hotspot over 3G/4G. If you follow my tutorial on the NodeMCU server, you can connect to a 3G/4G device with hotspot capabilities:

NodeMCU Tutorial Series Part II: NodeMCU Server Control Over Local Area Network

This is the setup for the server project, which I was able to successfully control using my phone's 3G connection: