Categorygithub.com/knackwurstking/picow-led-server

# README

PicoW LED Server

Notes

Endpoints:

EndpointGETPOSTPUTDELETE
/x
/wsx

WebSocket Events:

TypeData
errorstring
devicesWSEvents_Device[]
deviceWSEvents_Device

WebSocket Commands:

CommandData
GET api.devicesnull
POST api.deviceWSEvents_Device
PUT api.deviceWSEvents_Device
DELETE api.device{ addr: string }
POST api.device.pins{ addr: string; pins: number[] }
POST api.device.color{ addr: string; color: number[] }

TS Types:

frontend/src/lib/websocket/types.ts

export interface WSEvents_Device {
    server: WSEvents_DeviceServer;
    pins?: number[];
    color?: number[];
}

export interface WSEvents_DeviceServer {
    name?: string;
    addr: string;
    online?: boolean;
}

# Packages

No description provided by the author
No description provided by the author
No description provided by the author