mirror of
https://github.com/furyhawk/ESP32-X-Desktop.git
synced 2026-07-21 17:05:35 +00:00
- Implemented security2.py for handling protobuf packets with security type protocomm_security2. - Introduced srp6a.py for secure password verification and session management. - Created transport layer with various transport methods: BLE, console, and HTTP. - Added utility functions for data type conversions in convenience.py. - Established a modular structure for network provisioning, allowing for flexible transport options.
56 lines
1.1 KiB
Protocol Buffer
56 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "constants.proto";
|
|
|
|
message CmdCtrlWifiReset {
|
|
}
|
|
|
|
message RespCtrlWifiReset {
|
|
}
|
|
|
|
message CmdCtrlWifiReprov {
|
|
}
|
|
|
|
message RespCtrlWifiReprov{
|
|
}
|
|
|
|
message CmdCtrlThreadReset {
|
|
}
|
|
|
|
message RespCtrlThreadReset {
|
|
}
|
|
|
|
message CmdCtrlThreadReprov {
|
|
}
|
|
|
|
message RespCtrlThreadReprov{
|
|
}
|
|
|
|
enum NetworkCtrlMsgType {
|
|
TypeCtrlReserved = 0;
|
|
TypeCmdCtrlWifiReset = 1;
|
|
TypeRespCtrlWifiReset = 2;
|
|
TypeCmdCtrlWifiReprov = 3;
|
|
TypeRespCtrlWifiReprov = 4;
|
|
TypeCmdCtrlThreadReset = 5;
|
|
TypeRespCtrlThreadReset = 6;
|
|
TypeCmdCtrlThreadReprov = 7;
|
|
TypeRespCtrlThreadReprov = 8;
|
|
|
|
}
|
|
|
|
message NetworkCtrlPayload {
|
|
NetworkCtrlMsgType msg = 1;
|
|
Status status = 2;
|
|
oneof payload {
|
|
CmdCtrlWifiReset cmd_ctrl_wifi_reset = 11;
|
|
RespCtrlWifiReset resp_ctrl_wifi_reset = 12;
|
|
CmdCtrlWifiReprov cmd_ctrl_wifi_reprov = 13;
|
|
RespCtrlWifiReprov resp_ctrl_wifi_reprov = 14;
|
|
CmdCtrlThreadReset cmd_ctrl_thread_reset = 15;
|
|
RespCtrlThreadReset resp_ctrl_thread_reset = 16;
|
|
CmdCtrlThreadReprov cmd_ctrl_thread_reprov = 17;
|
|
RespCtrlThreadReprov resp_ctrl_thread_reprov = 18;
|
|
}
|
|
}
|