Default Port: 3000
Set:
Group | Command | Args | Response Data |
---|---|---|---|
config | led | <pin> ... |
null |
led | color | <number> ... |
null |
Get:
Group | Command | Args | Response Data |
---|---|---|---|
config | led | - | number[] |
info | temp | - | number |
info | disk-usage | - | { used: number, free: number } |
info | version | - | string |
led | color | - | []number |
NOTE: If the
Request
id is set to-1
, the pico will skip the server response
interface Request {
id?: number;
group: string;
type: string;
command: string;
args?: any[];
}
interface Response {
id: number;
error: string | null;
data: any | null;
}