How to Choose Serialization Protocols in MQTT Messaging: Text Serialization vs. Binary Serialization

How to Choose Serialization Protocols in MQTT Messaging: Text Serialization vs. Binary Serialization

Serialization of String Messages In the previous article, we used the <span>MQTTnet</span> framework to implement an MQTT server, an MQTT publisher process, and an MQTT subscriber process. During the messaging process, we directly passed the string from the console. Since MQTT is an application layer protocol, it is based on TCP for data transmission. We … Read more

Exploring the MQTT Protocol | From Basics to Applications

Exploring the MQTT Protocol | From Basics to Applications

MESSAGE QUEUING TELEMETRY TRANSPORTWhat is the “MQTT” Protocol? MQTT (Message Queuing Telemetry Transport) is a standard (ISO/IEC PRF 20922) based on the publish-subscribe paradigm. It operates on top of the TCP/IP protocol and is designed for remote devices with limited hardware capabilities and poor network conditions, making it a publish/subscribe messaging protocol that is lightweight, … Read more

Qt and Sinch Technology Collaborate to Upgrade Digital Cockpit Solutions

Qt and Sinch Technology Collaborate to Upgrade Digital Cockpit Solutions

At the Beijing International Automotive Exhibition opening on April 25, 2024, Sinch Technology and HMI development software provider Qt Group jointly released and showcased a new intelligent cockpit solution: the Outrun digital cockpit solution based on the Sinch X9SP and Qt 6.5 LTS, as well as a dashboard solution based on the Sinch E3340 and … Read more

Qt-Based Embedded Linux Input Method: Custom Word Support, Traditional Chinese, Wayland and Watson Compatibility, Pure QWidget, Beautiful and Skinnable Interface

Qt-Based Embedded Linux Input Method: Custom Word Support, Traditional Chinese, Wayland and Watson Compatibility, Pure QWidget, Beautiful and Skinnable Interface

1. Features Written entirely in QWidget, featuring an original input method mechanism with no dependencies on any third-party dynamic libraries. Supports various versions of Qt, including Qt4, Qt5, Qt6, and later versions. Compatible with various compilers, including mingw, msvc, gcc, clang, wasm, etc. Supports various target platforms, including Windows, Linux, macOS, Android, and embedded Linux. … Read more

Siemens PLC for Smart Home: Cost-Effective and Reliable

Siemens PLC for Smart Home: Cost-Effective and Reliable

Siemens PLC for Smart Home: Cost-Effective and Reliable Want to use a PLC for smart home control? Today, we will guide you step-by-step using the Siemens S7-1200 PLC, from lighting control to security integration! 1. Quick Overview of System Functions • Remote control of home appliances via mobile phone • Automatic light switch with sensors … Read more

MQTT 5.0: 7 New Features and Migration Considerations

MQTT 5.0: 7 New Features and Migration Considerations

The MQTT protocol (Message Queuing Telemetry Transport) is a lightweight messaging protocol designed for resource-constrained devices and low-bandwidth, high-latency networks. It is particularly suitable for remote connections that require minimal code footprint or limited network bandwidth. MQTT 5.0 is the latest version of this protocol, featuring numerous improvements over previous versions. New functionalities include: reason … Read more

Using MQTT on Android and Common Problem Solutions

Using MQTT on Android and Common Problem Solutions

1. Basic Usage of MQTT 1. Add Dependencies // build.gradle (app) implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5' implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1' 2. Configure Permissions <!– AndroidManifest.xml –> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> <service android:name="org.eclipse.paho.android.service.MqttService" /> 3. Core Code Example class MqttManager(context: Context) { private val serverUri = "tcp://mqtt.eclipse.org:1883" private val clientId = "android-client-${System.currentTimeMillis()}" private val qos = … Read more

MQTT 5.0: Enhanced Security Features

MQTT 5.0: Enhanced Security Features

MQTT Introduction  MQTT[1] 5.0, launched in March 2019 by OASIS (Organization for the Advancement of Structured Information Standards), is a significant upgrade from the MQTT 3.1.1 version released in 2014.  As a messaging protocol specifically designed for the Internet of Things (IoT) and Industrial IoT, it was previously introduced in ‘MQTT, Friend of Weak Networks’, … Read more

Best Practices for Reporting Temperature Data to Observability Cloud via MQTT Protocol

Best Practices for Reporting Temperature Data to Observability Cloud via MQTT Protocol

Introduction to MQTT MQTT (Message Queuing Telemetry Transport) is a lightweight messaging protocol based on the publish/subscribe model, designed for low-bandwidth, high-latency, or unreliable network environments. It is widely used in the Internet of Things (IoT), mobile applications, and distributed systems to enable efficient communication between devices. By reducing data transmission volume and simplifying communication … Read more

What You May Not Know About MQTT

What You May Not Know About MQTT

MQTT (Message Queuing Telemetry Transport) is a lightweight publish/subscribe protocol that is indeed very suitable for IoT devices operating under low bandwidth communication conditions. The following sections provide a detailed introduction from multiple perspectives: Basic Principles of the Protocol MQTT is based on a client-server (i.e., broker) publish/subscribe model. In this model, client devices can … Read more