You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
455 B
16 lines
455 B
import type { Message } from "@bufbuild/protobuf";
|
|
import { Protobuf } from "@meshtastic/js";
|
|
import { IsBoolean, IsEnum, IsInt } from "class-validator";
|
|
|
|
export class BluetoothValidation
|
|
implements Omit<Protobuf.Config.Config_BluetoothConfig, keyof Message>
|
|
{
|
|
@IsBoolean()
|
|
enabled: boolean;
|
|
|
|
@IsEnum(Protobuf.Config.Config_BluetoothConfig_PairingMode)
|
|
mode: Protobuf.Config.Config_BluetoothConfig_PairingMode;
|
|
|
|
@IsInt()
|
|
fixedPin: number;
|
|
}
|
|
|