Skip to content

page_the_examples

Sara Damiano edited this page Sep 11, 2026 · 1 revision

title: TinyGSM Examples

TinyGSM Examples

These example programs demonstrate how to use the TinyGSM library.


Basic Connections

HTTP Client

This example uses ArduinoHttpClient with TinyGSM to perform HTTP requests for REST-style API interactions.

HTTPS Client

This example uses ArduinoHttpClient with TinyGSM to perform HTTPS requests over TLS on supported modems.

MQTT Client

This example connects to an MQTT broker and demonstrates publish/subscribe messaging using TinyGSM and PubSubClient.

Web Client

This example builds and sends a raw HTTP request over a TinyGSM client socket to illustrate manual web request handling.

More Complex Connections

AWS IoT Core

This example shows how to provision certificates on supported modems and connect to AWS IoT Core over MQTT with TLS.

File Download

This example downloads a remote file in chunks and validates data integrity using CRC32 checksums.

Multiple Connections

This example opens and manages multiple simultaneous client connections to different servers in one sketch.

Multiple Modules

This example shows how to use two different modems together in the same code. The key thing to notice is that instead of defining the modem type and including the TinyGsmClient.h file, it includes the specific modem headers.

Special Libraries

Blynk Client

This example connects a TinyGSM modem to Blynk so a device can exchange data and be controlled from the Blynk app.

Library Features

All Functions

This example demonstrates and exercises a broad set of TinyGSM modem, network, client, SMS, call, and utility functions in a single sketch for capability testing.

Capability Query

This example demonstrates compile-time modem capability detection using TinyGSM traits for multi-modem codebases.

Other Use Cases

Hologram Dash

This example targets Hologram Dash workflows by entering passthrough mode and sending network requests through TinyGSM.

SIM800 SSL Set Cert

This example uploads SSL certificate material to SIM8xx modems so secure TLS connections can be established.

Other Tools

For other helpful tools, see the tools page.


Generated by Doxygen and m.css with templates from doxybook2 Updated on 2026-09-11

Clone this wiki locally