Skip to content

namespace_tiny_gsm_capabilities

Sara Damiano edited this page Oct 27, 2026 · 1 revision

TinyGsmCapabilities (namespace)

Module: TinyGsmCapabilities Namespace for TinyGSM capability detection traits.

These traits check if a modem type inherits from specific capability templates to determine what features are available.

Custom implementations of type traits for AVR compatibility (no type_traits). Compatible with C++11 and later.

Usage:

// Query capability at compile time
if (TinyGsmCapabilities::has_ssl<TinyGsm>::value) {
  Serial.println("SSL is supported");
}

// For conditional compilation, use C++17 if constexpr:
if constexpr (TinyGsmCapabilities::has_ssl<TinyGsm>::value) {
  TinyGsmClientSecure client(modem);  // Only compiles if SSL available
}

Classes

Name
struct integral_constant
struct make_void
struct is_base_of_impl
struct is_base_of
struct has_ssl
struct has_ssl<T, typename make_void<typename T::SslConfig>::type>
struct can_specify_certs
struct can_specify_certs<T, typename make_void<typename T::SslConfig>::type>
struct can_load_certs
struct can_load_certs<T, typename make_void<typename T::SslConfig>::type>
struct has_gps
struct has_cellular_data
struct has_wifi
struct has_sms
struct has_calling
struct has_battery
struct has_temperature
struct has_ntp
struct has_time
struct has_gsm_location
struct has_bluetooth
struct has_tcp

Generated by Doxygen and m.css with templates from doxybook2

Clone this wiki locally