MQTT 5 Session & Message Expiry Intervals Explained

Two of the most practical additions in MQTT 5 are about time: how long the broker should hold on to a client’s session, and how long it should hold on to an individual message. In MQTT 3.1.1, neither was a protocol concern. A persistent session lived indefinitely on the broker until something explicitly wiped it, and a queued… Read More »

Zakaria El Intissar

What’s New in MQTT 5? Features, Changes & Why Upgrade

MQTT 5 is the current version of the protocol. It was ratified as an OASIS standard on 7 March 2019, succeeding MQTT 3.1.1, which had been the standard since 2014. MQTT 5 is not a rewrite. It is an evolution of MQTT 3.1.1 that keeps the core (publish/subscribe, topics, QoS, sessions, retained messages, LWT, keep alive) and adds… Read More »

Zakaria El Intissar

MQTT Over WebSockets Explained: Browsers, Ports, TLS

MQTT runs on top of TCP. That works well almost everywhere it is deployed: on embedded devices, gateways, servers, and desktop tools. There is one environment, though, where it does not work directly: the browser. A web page cannot open a raw TCP connection, which means a JavaScript MQTT client cannot connect to a broker over plain MQTT… Read More »

Zakaria El Intissar

CIP Safety vs PROFIsafe: An Honest Comparison of SIL3 Safety Protocols

Both protocols certify safety up to SIL3, Cat 4, PL e. Both use the Black Channel principle. Both have been deployed for nearly two decades and are used extensively across industries worldwide, with very large installed bases. On paper, CIP Safety and PROFIsafe look almost interchangeable. In practice, choosing between them is one of the most consequential decisions… Read More »

Zakaria El Intissar

CIP Safety Explained: How EtherNet/IP Carries SIL3 Safety Data

Here is the question every engineer eventually asks: how can you trust an Ethernet packet to stop a hydraulic press? Standard Ethernet drops packets. Switches buffer and re-order them. Cables get unplugged mid-cycle. Yet CIP Safety lets a safety PLC monitor an emergency stop button over the same network that carries your I/O and your HMI traffic —… Read More »

Zakaria El Intissar

PROFINET vs EtherCAT: An Honest Comparison for Real Projects

Pick the wrong industrial Ethernet protocol for a new machine and you live with it for 15 years. Wrong drives. Wrong I/O. Wrong engineering tools. Wrong training. That is why the PROFINET vs EtherCAT question — sometimes asked as EtherCAT vs PROFINET — matters more than the spec sheet suggests. Both protocols are real-time Ethernet standards, both are… Read More »

Zakaria El Intissar

EtherCAT Protocol Explained: The Trick That Makes It Fast

EtherCAT is the protocol you reach for when 1ms is too slow. Motion control, multi-axis robotics, high-speed test rigs, anything synchronized down to the microsecond — that is EtherCAT territory. It looks like Ethernet, runs on the same cables, uses standard RJ45 connectors. But under the hood it does something no other industrial Ethernet protocol does: it reads… Read More »

Zakaria El Intissar

MQTT Keep Alive & Client Take-Over Explained

MQTT relies on long-lived TCP connections to push messages efficiently in both directions without polling. That design works well when connections behave the way TCP says they will, and breaks down badly when they do not. On mobile, cellular, and satellite links, a connection can quietly stop carrying data while still looking, to both sides, as if it… Read More »

Zakaria El Intissar

MQTT Last Will and Testament (LWT) Explained

MQTT is built to run over networks that are not reliable, so it has to assume that clients will sometimes vanish without warning. A client can drop because its battery died, its radio lost signal, its host crashed, or anything else that prevents it from sending a normal disconnect. The rest of the system needs a way to… Read More »

Zakaria El Intissar

MQTT Retained Messages Explained: Last Known Value

In MQTT, a publishing client has no guarantee that a subscribing client will actually receive its message, because pub/sub decouples them. The publisher’s only guarantee is that the message arrives at the broker; from there, delivery to subscribers depends on who is currently subscribed. Similarly, a client that has just connected and subscribed has no guarantee about when… Read More »

Zakaria El Intissar