~/talk

Extreme MQTT on PicoRuby

Talkat RubyKaigi 2026 · 2026-04-22..04-24· [ruby, embedded-and-hardware]
links:none on file
slides:none on file

A C binding called picoruby-net-mqtt-femto runs LWIP's MQTT client on a Raspberry Pi Pico W and implements QoS 0 and QoS 1 with automatic retransmit and exponential backoff. Connection uses cyw43_arch_poll outside the LWIP lock to avoid a deadlock, the receive ring buffer is 4 slots (1,180 bytes), and RAM accounting shows a 150 KB mrbc heap + 90 KB LWIP BSS leaving ~3 KB free so MQTTS fails because Mbed TLS requests ~40 KB; this prototype controls an industrial switch and mostly works within the RP2040 264 KB limit.

AI-written summary · about

  1. 0:00Introduction
  2. 3:32What is MQTT
  3. 7:26Implementation layers
  4. 12:51Source code deep dive
  5. 17:55Reconnect and sleep
  6. 20:08Memory limits
  7. 26:09Wrap-up and limits
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.