qmetrics.net

TaskScheduler

Cooperative multitasking scheduler for microcontrollers

TaskScheduler runs periodic and event-driven callbacks on Arduino-class boards without a preemptive RTOS. One loop executes due tasks and can idle between runs.

Overview

TaskScheduler is a lightweight cooperative multitasking library for embedded boards. Instead of preemptive RTOS-style threading, you register tasks with intervals or triggers and call a single execute routine from the main loop; only one task runs at a time, which avoids typical concurrency pitfalls.

Tasks can run on fixed millisecond or microsecond periods, for a limited or unlimited number of iterations, in a defined order, with dynamic changes to interval and callbacks. Static and dynamic binding and std::function-style callbacks are supported on capable targets. Idle sleep can reduce power when nothing is scheduled, and optional timeouts, load statistics, and tickless scheduling cater to timing-sensitive sketches.

Event-driven invocation uses status-request objects; you can assign task IDs, control points, local storage per task, layered priorities, and pause or resume scheduling. Thread-safe modes exist when the library runs alongside preemptive schedulers such as FreeRTOS.

It targets Arduino IDE and PlatformIO workflows on Uno, ATtiny, ESP8266, ESP32, Teensy, nRF52, STM32, MSP430 family boards, and similar hardware, with optional non-Arduino ports when you supply timing hooks. painlessMesh and other projects embed it for mesh and IoT control loops.

Key features

  • Periodic tasks with ms or µs intervals
  • Finite or infinite task iteration counts
  • Dynamic interval and callback changes
  • Idle sleep for lower power draw
  • Event-driven status-request triggers
  • Pause, resume, enable, disable scheduling
  • Layered priorities and task timeouts
  • FreeRTOS thread-safe scheduling mode

Use cases

  • Multiple timed loops on Arduino sketches
  • ESP mesh and IoT firmware scheduling
  • Sensor polling without manual millis checks
  • LED patterns and serial I/O concurrency

Tags

Similar software

MQTT.js

JavaScript MQTT client for Node.js and browsers

MQTT.js is a client library for the MQTT protocol in JavaScript. It targets Node.js and browser environments and can connect to brokers over TCP, TLS, and WebSockets.

  • MQTT client for Node.js and browsers
  • TCP, TLS, and WebSocket transports
  • Automatic reconnection with tunable options
TypeScriptWeb, CLIDetails →
★ 9.1k⟳ 4 days agoMIT

Hass Xiaomi Miot

Home Assistant integration for Xiaomi MIoT devices

This Home Assistant custom integration connects Xiaomi Wi-Fi, BLE, and Zigbee devices via the MIoT specification, with UI-based setup and optional cloud or local control modes.

  • MIoT-spec protocol integration
  • HACS and manual install paths
  • Mi account or host token pairing
PythonDetails →
★ 6.3k⟳ 15 days agoApache-2.0

Node SerialPort

Serial port access from JavaScript

node-serialport lets JavaScript and TypeScript talk to hardware over serial ports on Linux, macOS, and Windows. It targets robots, IoT gadgets, and desktop tools that need USB serial links.

  • Serial read and write from Node.js
  • Linux, macOS, and Windows support
  • Electron-compatible workflows
TypeScriptLinux, macOS, WindowsDetails →
★ 6k⟳ 11 months agoMIT

FastBle

Android Bluetooth Low Energy development library

FastBle simplifies Android BLE scanning, connection, read, write, notify, RSSI, and MTU handling with filtering, multi-connection support, and modern ScanCallback APIs.

  • Filtered BLE scanning
  • Multi-device connections
  • Read write notify indicate
JavaAndroidDetails →
★ 5.5k⟳ 7 months agoApache-2.0

Lovelace Mushroom

Home Assistant Lovelace dashboard card collection

Mushroom is a set of custom Lovelace cards for Home Assistant dashboards. Each card is configured in the UI editor with icon and color pickers and no extra card dependencies.

  • Custom Lovelace cards for many entity types
  • Full UI editor for every card option
  • Built-in icon and color pickers
TypeScriptWebDetails →
★ 5.3k⟳ 3 days agoApache-2.0

Blinker

Arduino and ESP IoT client library for Blinker cloud

The Blinker library links embedded boards to the Blinker IoT platform over Wi-Fi, BLE, or MQTT from Arduino, ESP8266, and ESP32 firmware.

  • Arduino and ESP board support
  • Wi-Fi, BLE, and MQTT transports
  • Blinker mobile app integration
C++Details →
★ 5.2k⟳ 1 year agoMIT
IoT, Hardware & FirmwareNo commits in 18+ months