Build custom IOT devices — fast.
#include <Superluminal.h>
// ── Declare your node ──────────────────
GreyNode node("TEMP-SILO-01");
void setup() {
// Select frequency band
node.setNetwork(LORA_915);
// Attach sensors (pin, type)
node.addSensor(TEMP_PROBE, A0);
node.addSensor(HUMIDITY, A1);
// Configure reporting & alerts
node.setReportInterval(300); // 5 min
node.setAlertThreshold(
TEMP_PROBE, HIGH, 35.0 // °C
);
// OTA update channel
node.enableOTA("SILO-ZONE-A");
node.begin();
}
void loop() {
// Handles LoRa radio, OTA updates,
// deep-sleep scheduling & telemetry
node.tick();
}Supported Hardware
Uplink Protocols