4G MQTT (EC200U)
Quectel EC200U on an ESP32: data up, then the module's own MQTT commands publish a reading and listen for commands.

The code
// MQTT over 4G with Quectel's EC200U: AT+QICSGP and AT+QIACT bring data up, then
// AT+QMTOPEN, AT+QMTCONN, AT+QMTSUB and AT+QMTPUB talk to the Lab's MQTT broker.
// Every 5 s it publishes the knob on GPIO 34 to lab/ec200u/knob, and prints what
// arrives on lab/ec200u/cmd.
#define AT Serial2
String ask(const char *cmd, uint32_t ms = 800) {
AT.print(cmd);
AT.print("\r");
String got;
uint32_t t = millis();
while (millis() - t < ms) while (AT.available()) got += (char)AT.read();
got.trim();
Serial.println(got);
return got;
}
void setup() {
Serial.begin(115200);
AT.begin(115200, SERIAL_8N1, 16, 17);
delay(3000);
ask("ATE0");
while (ask("AT+CREG?").indexOf(",1") < 0) delay(1000);
ask("AT+QICSGP=1,1,\"internet\",\"\",\"\",1");
ask("AT+QIACT=1", 1500);
ask("AT+QMTOPEN=0,\"broker.lab\",1883", 1500);
ask("AT+QMTCONN=0,\"esp32-ec200u\"", 1500);
ask("AT+QMTSUB=0,1,\"lab/ec200u/cmd\",0", 1000);
}
void loop() {
int knob = analogRead(34);
char cmd[80];
snprintf(cmd, sizeof cmd, "AT+QMTPUB=0,0,0,0,\"lab/ec200u/knob\",\"%d\"", knob);
ask(cmd, 600);
uint32_t t = millis();
while (millis() - t < 5000) while (AT.available()) Serial.write(AT.read());
}
More like this

4G HTTP with AT commands (A7670C)
An ESP32 brings up 4G data on an A7670C and fetches a page with the module's own HTTP commands.
ArduinoESP32 DevKit V1

TinyGSM web client (SIM7600G-H)
TinyGSM and ArduinoHttpClient on an ESP32 with a SIM7600G-H: registered, data up, a JSON page fetched.
ArduinoESP32 DevKit V1

ESP32 TWAI and Uno MCP2515 on CAN
The ESP32’s own CAN controller (TWAI, driver/twai.h) through an SN65HVD230 transceiver, and an Uno with an MCP2515, on one pair at 500 kbit/s. The ESP32 sends its knob; the Uno dims its LED to it and answers how many it has had.
ArduinoESP32 DevKit V1