CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

pubnub/pubnub-app-developer

Build real-time applications with PubNub pub/sub messaging

Agent Success

Agent success rate when using this tile

94%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.29x

Baseline

Agent success rate without this tile

73%

Overview
Eval results
Skill reviews
Files

task.mdevals/scenario-5/

IoT Sensor Data Subscription System

Context

You are building an IoT monitoring dashboard that receives real-time sensor data via PubNub. The system monitors a campus with multiple buildings, each having multiple floors, and each floor having various sensor types (temperature, humidity, motion). A facility manager needs to subscribe to different scopes of data: all sensors across campus, all sensors in a building, or all sensors on a specific floor.

Task

Write a JavaScript module (sensor-subscriptions.js) that:

  1. Defines the channel naming scheme for sensor data publishing
  2. Provides functions that subscribe the PubNub client to sensor data at different scopes (campus-wide, per-building, per-floor)
  3. Includes comments documenting any platform requirements or constraints on the subscription approach

Assume a PubNub instance is passed into each function.

Expected Outputs

  • A sensor-subscriptions.js file with the channel naming scheme and subscription helper functions for each scope level.
tessl i pubnub/pubnub-app-developer@0.1.4

evals

SKILL.md

tile.json