refactor
This commit is contained in:
@@ -33,8 +33,24 @@ export const CommandsByValue: t = Object.keys(Commands).reduce((acc: t, cur) =>
|
||||
|
||||
export const DrwStart = 0x0a11;
|
||||
export const ControlCommands = {
|
||||
// TODO: flip these..
|
||||
ConnectUser: 0x2010,
|
||||
ConnectUserAck: 0x2011,
|
||||
DevStatus: 0x0810,
|
||||
DevStatusAck: 0x0811,
|
||||
ListWifi: 0x0360,
|
||||
ListWifiAck: 0x0361,
|
||||
WifiSettings: 0x0261,
|
||||
StartVideo: 0x1030,
|
||||
};
|
||||
|
||||
export const ccDest: Record<number, number> = {
|
||||
[ControlCommands.ConnectUser]: 0xff00,
|
||||
[ControlCommands.DevStatus]: 0x0000,
|
||||
[ControlCommands.ListWifi]: 0x0000,
|
||||
[ControlCommands.ListWifiAck]: 0x0361,
|
||||
[ControlCommands.StartVideo]: 0x0000,
|
||||
[ControlCommands.ConnectUserAck]: 0xaa55,
|
||||
[ControlCommands.DevStatusAck]: 0xaa55,
|
||||
[ControlCommands.WifiSettings]: 0xaa55,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user