MQTT, REST API, SDK 중 선택하세요. 모든 언어와 플랫폼을 지원합니다.
neuriot.net에서 무료 계정을 만들고 API 키를 발급받으세요. 신용카드 없이 즉시 시작 가능합니다.
원하는 언어로 SDK를 설치하세요.
코드 몇 줄로 디바이스를 연결하고 데이터를 전송하세요.
import neuriot
client = neuriot.Client(
host="broker.neuriot.net",
port=8883,
device_id="my-sensor",
api_key="nr_live_xxxx"
)
@client.on_connect
def connected(rc):
print("✓ 연결됨")
client.publish(
"sensors/temp",
{"value": 24.5, "unit": "°C"}
)
client.connect()
// REST API로 데이터 조회
const response = await fetch(
'https://api.neuriot.net/v1/devices',
{
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Content-Type': 'application/json'
}
}
);
const devices = await response.json();
console.log(`연결된 디바이스: ${devices.total}`);
from neuriot.edge import EdgeAI
# ONNX 모델 로드
ai = EdgeAI("anomaly_detector.onnx")
@client.on_message("sensors/+")
def process(data):
# 엣지에서 AI 추론
result = ai.predict(data)
if result.anomaly_score > 0.8:
client.alert({
"type": "anomaly",
"score": result.anomaly_score,
"device": data.device_id
})
// 실시간 데이터 스트리밍
const ws = new WebSocket(
'wss://stream.neuriot.net/v1'
);
ws.onopen = () => {
ws.send(JSON.stringify({
action: 'subscribe',
topics: ['factory/+/telemetry'],
api_key: API_KEY
}));
};
ws.onmessage = ({ data }) => {
const msg = JSON.parse(data);
updateDashboard(msg);
};